Trait NodeComponent
pub trait NodeComponent: NerveComponent {
// Required methods
fn create_registry(&self) -> Result<Box<dyn NodeRegistry>, NerveError>;
fn node_count(&self) -> usize;
fn node_count_by_type(&self, node_type: NodeType) -> usize;
fn node_health_summary(&self) -> NodeHealthSummary;
}Expand description
Node management component interface
Required Methods§
fn create_registry(&self) -> Result<Box<dyn NodeRegistry>, NerveError>
fn create_registry(&self) -> Result<Box<dyn NodeRegistry>, NerveError>
Create a node registry
fn node_count(&self) -> usize
fn node_count(&self) -> usize
Get total node count
fn node_count_by_type(&self, node_type: NodeType) -> usize
fn node_count_by_type(&self, node_type: NodeType) -> usize
Get node count by type
fn node_health_summary(&self) -> NodeHealthSummary
fn node_health_summary(&self) -> NodeHealthSummary
Get node health summary