pub struct MetadataStore { /* private fields */ }Expand description
Metadata store
This component manages all metadata for the controller:
- Broker registration and heartbeat
- Topic configuration
- Controller configuration
- Replica and ISR management
All metadata is replicated through Raft for consistency.
Implementations§
Source§impl MetadataStore
impl MetadataStore
Sourcepub async fn new(config: Arc<ControllerConfig>) -> Result<Self>
pub async fn new(config: Arc<ControllerConfig>) -> Result<Self>
Create a new metadata store
Sourcepub fn broker_manager(&self) -> &Arc<BrokerManager>
pub fn broker_manager(&self) -> &Arc<BrokerManager>
Get the broker manager
Sourcepub fn topic_manager(&self) -> &Arc<TopicManager>
pub fn topic_manager(&self) -> &Arc<TopicManager>
Get the topic manager
Sourcepub fn config_manager(&self) -> &Arc<ConfigManager>
pub fn config_manager(&self) -> &Arc<ConfigManager>
Get the config manager
Sourcepub fn replicas_manager(&self) -> &Arc<ReplicasManager>
pub fn replicas_manager(&self) -> &Arc<ReplicasManager>
Get the replicas manager
Auto Trait Implementations§
impl Freeze for MetadataStore
impl !RefUnwindSafe for MetadataStore
impl Send for MetadataStore
impl Sync for MetadataStore
impl Unpin for MetadataStore
impl !UnwindSafe for MetadataStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more