Package org.apache.cassandra.service
Interface IEndpointLifecycleSubscriber
-
- All Known Implementing Classes:
Server.EventNotifier
public interface IEndpointLifecycleSubscriberInterface on which interested parties can be notified of high level endpoint state changes. Note that while IEndpointStateChangeSubscriber notify about gossip related changes (IEndpointStateChangeSubscriber.onJoin() is called when a node join gossip), this interface allows to be notified about higher level events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonDown(InetAddressAndPort endpoint)Called when a node is marked DOWN.voidonJoinCluster(InetAddressAndPort endpoint)Called when a new node joins the cluster, i.e.voidonLeaveCluster(InetAddressAndPort endpoint)Called when a new node leave the cluster (decommission or removeToken).voidonMove(InetAddressAndPort endpoint)Called when a node has moved (to a new token).voidonUp(InetAddressAndPort endpoint)Called when a node is marked UP.
-
-
-
Method Detail
-
onJoinCluster
void onJoinCluster(InetAddressAndPort endpoint)
Called when a new node joins the cluster, i.e. either has just been bootstrapped or "instajoins".- Parameters:
endpoint- the newly added endpoint.
-
onLeaveCluster
void onLeaveCluster(InetAddressAndPort endpoint)
Called when a new node leave the cluster (decommission or removeToken).- Parameters:
endpoint- the endpoint that is leaving.
-
onUp
void onUp(InetAddressAndPort endpoint)
Called when a node is marked UP.- Parameters:
endpoint- the endpoint marked UP.
-
onDown
void onDown(InetAddressAndPort endpoint)
Called when a node is marked DOWN.- Parameters:
endpoint- the endpoint marked DOWN.
-
onMove
void onMove(InetAddressAndPort endpoint)
Called when a node has moved (to a new token).- Parameters:
endpoint- the endpoint that has moved.
-
-