class
Movie::Cluster::ClusterSplitBrainExtension
- Movie::Cluster::ClusterSplitBrainExtension
- Movie::Extension
- Reference
- Object
Defined in:
movie/cluster/split_brain.crConstant Summary
-
Log =
::Log.for(self)
Constructors
-
.new(cluster : ClusterSafetyView, lease : SplitBrainLease, settings : LeaseMajoritySettings, shutdown : Proc(String, Nil))
Source-compatible constructor for applications that created the original lease-only extension directly.
- .new(coordinator : SplitBrainCoordinator)
Instance Method Summary
- #coordinator : SplitBrainCoordinator
-
#start : Bool
Called when the extension is registered with the system.
- #stats : SplitBrainStats
-
#stop : Nil
Called when the system is shutting down.
- #strategy : SplitBrainStrategy
Constructor Detail
def self.new(cluster : ClusterSafetyView, lease : SplitBrainLease, settings : LeaseMajoritySettings, shutdown : Proc(String, Nil))
#
Source-compatible constructor for applications that created the original lease-only extension directly. New code should prefer ActorSystem#enable_split_brain so strategy selection stays centralized.
Instance Method Detail
def start : Bool
#
Description copied from class Movie::Extension
Called when the extension is registered with the system. Override to perform initialization.
def stop : Nil
#
Description copied from class Movie::Extension
Called when the system is shutting down. Override to cleanup resources (close connections, stop services, etc.)