abstract class Clustering
- Clustering
- Reference
- Object
Direct Known Subclasses
Defined in:
redis_service_manager/clustering.crConstructors
Instance Method Summary
- #cluster_stable_callbacks : Array( -> )
-
#node_hash : Hash(String, URI)
returns a node_id => URI mapping
-
#on_cluster_stable(&callback : -> )
Called on leader node when the cluster has stabilised
-
#on_rebalance(&callback : RendezvousHash, RebalanceComplete -> )
Called when the cluster has changed
- #rebalance_callbacks : Array(RendezvousHash, RebalanceComplete -> )
-
#register : Bool
registers this node with the cluster as a member
-
#registered? : Bool
is this node registered as part of the cluster
-
#rendezvous : RendezvousHash
returns the list of known nodes
-
#service : String
the name of the service you are clustering
-
#ulid : String
the id of the node
-
#unregister : Bool
removes this node from the cluster as a member
-
#uri : String
the service uri for this host
- #version : String
-
#watching? : Bool
is this class watching for changes to the cluster this should return true if registered returns true
Constructor Detail
Instance Method Detail
def on_rebalance(&callback : RendezvousHash, RebalanceComplete -> )
#
Called when the cluster has changed
abstract
def watching? : Bool
#
is this class watching for changes to the cluster this should return true if registered returns true