pub struct HighAvailabilityManager { /* private fields */ }Expand description
High Availability module for Anya Core [AIR-3][AIS-3][AIT-3][PFM-3][SCL-3][RES-3]
Provides resilient infrastructure capabilities including:
- Cluster management
- Automatic failover
- Health monitoring
- Data replication
- Load balancing
This module coordinates all high availability features to ensure system reliability and fault tolerance.
Implementations§
Source§impl HighAvailabilityManager
impl HighAvailabilityManager
Sourcepub fn new(config: HighAvailabilityConfig) -> Self
pub fn new(config: HighAvailabilityConfig) -> Self
Creates a new HighAvailabilityManager with the specified configuration
Sourcepub async fn initialize(&mut self) -> Result<(), HaError>
pub async fn initialize(&mut self) -> Result<(), HaError>
Initializes all high availability components
Sourcepub async fn get_cluster_status(&self) -> Result<ClusterStatus, HaError>
pub async fn get_cluster_status(&self) -> Result<ClusterStatus, HaError>
Gets the current cluster status
Sourcepub async fn get_health_status(&self) -> Result<HealthStatus, HaError>
pub async fn get_health_status(&self) -> Result<HealthStatus, HaError>
Gets the current health status
Sourcepub async fn trigger_failover(&mut self) -> Result<(), HaError>
pub async fn trigger_failover(&mut self) -> Result<(), HaError>
Triggers a manual failover
Sourcepub async fn update_config(
&mut self,
config: HighAvailabilityConfig,
) -> Result<(), HaError>
pub async fn update_config( &mut self, config: HighAvailabilityConfig, ) -> Result<(), HaError>
Updates the high availability configuration
Auto Trait Implementations§
impl Freeze for HighAvailabilityManager
impl !RefUnwindSafe for HighAvailabilityManager
impl Send for HighAvailabilityManager
impl Sync for HighAvailabilityManager
impl Unpin for HighAvailabilityManager
impl !UnwindSafe for HighAvailabilityManager
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more