Skip to main content

Crate apiary_runtime

Crate apiary_runtime 

Source
Expand description

Apiary runtime — node lifecycle, bee pool, and swarm coordination.

This crate contains the ApiaryNode which is the main entry point for starting and running an Apiary compute node, the BeePool which manages isolated execution chambers (mason bee pattern), and the heartbeat / world view system for multi-node awareness.

Re-exports§

pub use bee::BeePool;
pub use bee::BeeState;
pub use bee::BeeStatus;
pub use bee::MasonChamber;
pub use behavioral::AbandonmentDecision;
pub use behavioral::AbandonmentTracker;
pub use behavioral::ColonyThermometer;
pub use behavioral::TemperatureRegulation;
pub use cache::CacheEntry;
pub use cache::CellCache;
pub use heartbeat::Heartbeat;
pub use heartbeat::HeartbeatWriter;
pub use heartbeat::NodeState;
pub use heartbeat::NodeStatus;
pub use heartbeat::WorldView;
pub use heartbeat::WorldViewBuilder;
pub use node::ApiaryNode;
pub use node::ColonyStatus;
pub use node::SwarmNodeInfo;
pub use node::SwarmStatus;

Modules§

bee
Mason bee isolation and BeePool.
behavioral
Behavioral model components: Task Abandonment and Colony Temperature.
cache
Local cell cache with LRU eviction.
heartbeat
Heartbeat writing, world view building, and node lifecycle.
node
The Apiary node — a stateless compute instance in the swarm.

Structs§

ApiaryQueryContext
The Apiary query context — wraps DataFusion with Apiary namespace resolution.

Functions§

world_view_to_node_info
Convert WorldView to a vector of NodeInfo for distributed query planning.