Interface IEndpointLifecycleSubscriber

All Known Implementing Classes:
Server.EventNotifier

public interface IEndpointLifecycleSubscriber
Interface 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 Details

    • 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.