57 std::function<std::shared_ptr<format::ProcessorNodeInstance>()>
create;
70 std::span<const std::uint8_t>
custom;
75 std::shared_ptr<format::ProcessorNodeInstance>
instance;
85 bool ok() const noexcept {
113 std::span<const ProcessorTypeKey> allowlist)
const;
Control-thread building block for hosts restoring a set of Processor nodes.
Definition processor_restore.hpp:99
static constexpr std::size_t max_total_state_bytes
Definition processor_restore.hpp:103
static constexpr std::size_t max_state_part_bytes
Definition processor_restore.hpp:102
ProcessorRestoreCode register_type(ProcessorRestoreDescriptor descriptor)
static constexpr std::size_t max_nodes
Definition processor_restore.hpp:101
ProcessorRestoreResult restore_batch(std::span< const ProcessorRestoreRecord > records, std::span< const ProcessorTypeKey > allowlist) const
Validates the entire batch and its explicit allowlist before executing factories; constructs and chec...
Bounded event contracts shared by host ingress and graph-authored nodes.
Definition anticipation_eligibility.hpp:9
const char * processor_restore_code_name(ProcessorRestoreCode code) noexcept
Stable names for machine-readable diagnostics; messages are supplementary.
ProcessorRestoreCode
Definition processor_restore.hpp:25
@ UnknownProcessorType
Definition processor_restore.hpp:31
@ UnsupportedVersion
Definition processor_restore.hpp:33
@ ProcessorCapabilityMismatch
Definition processor_restore.hpp:37
@ InvalidDescriptor
Definition processor_restore.hpp:27
@ Restored
Definition processor_restore.hpp:26
@ ProcessorStateRestoreFailed
Definition processor_restore.hpp:38
@ ProcessorConstructionFailed
Definition processor_restore.hpp:34
@ InvalidRecord
Definition processor_restore.hpp:29
@ StateLimitExceeded
Definition processor_restore.hpp:30
@ ProcessorTypeDisallowed
Definition processor_restore.hpp:32
@ ProcessorInstanceNotFresh
Definition processor_restore.hpp:35
@ ProcessorPortMismatch
Definition processor_restore.hpp:36
@ DuplicateProcessorType
Definition processor_restore.hpp:28
Application-owned, exact-version registration.
Definition processor_restore.hpp:48
int input_channels
Definition processor_restore.hpp:51
ProcessorTypeKey type
Definition processor_restore.hpp:49
std::function< std::shared_ptr< format::ProcessorNodeInstance >()> create
Trusted control-thread code.
Definition processor_restore.hpp:57
format::NodeCapabilities capabilities
Definition processor_restore.hpp:53
int output_channels
Definition processor_restore.hpp:52
int state_schema_version
Definition processor_restore.hpp:50
Already decoded two-part state.
Definition processor_restore.hpp:63
std::span< const std::uint8_t > custom
Definition processor_restore.hpp:70
std::uint32_t node_id
Definition processor_restore.hpp:64
int input_channels
Definition processor_restore.hpp:67
int state_schema_version
Definition processor_restore.hpp:66
std::span< const std::uint8_t > parameters
Definition processor_restore.hpp:69
int output_channels
Definition processor_restore.hpp:68
ProcessorTypeKey type
Definition processor_restore.hpp:65
Definition processor_restore.hpp:78
bool ok() const noexcept
Definition processor_restore.hpp:85
std::uint32_t node_id
Definition processor_restore.hpp:80
ProcessorRestoreCode code
Definition processor_restore.hpp:79
ProcessorTypeKey type
Definition processor_restore.hpp:81
std::vector< RestoredProcessor > processors
Empty on every failure, including a failure after an earlier restore.
Definition processor_restore.hpp:84
Definition processor_restore.hpp:19
friend bool operator==(const ProcessorTypeKey &, const ProcessorTypeKey &)=default
std::string type_id
Definition processor_restore.hpp:20
int type_version
Definition processor_restore.hpp:21
Definition processor_restore.hpp:73
std::shared_ptr< format::ProcessorNodeInstance > instance
Definition processor_restore.hpp:75
std::uint32_t node_id
Definition processor_restore.hpp:74