Class NodesFaultDetection

org.elasticsearch.discovery.zen.FaultDetection
org.elasticsearch.discovery.zen.NodesFaultDetection
All Implemented Interfaces:
,

public class NodesFaultDetection extends FaultDetection
A fault detection of multiple nodes.
  • Field Details

  • Constructor Details

  • Method Details

    • setLocalNode

      public void setLocalNode(DiscoveryNode localNode)
    • addListener

      public void addListener(NodesFaultDetection.Listener listener)
    • removeListener

      public void removeListener(NodesFaultDetection.Listener listener)
    • getNodes

      public <DiscoveryNode> getNodes()
      Gets the current set of nodes involved in node fault detection. NB: For testing purposes.
    • updateNodesAndPing

      public void updateNodesAndPing(ClusterState clusterState)
      make sure that nodes in clusterState are pinged. Any pinging to nodes which are not part of the cluster will be stopped
    • stop

      public NodesFaultDetection stop()
      stops all pinging
    • close

      public void close()
      Specified by:
       in interface 
      Specified by:
       in interface 
      Overrides:
      close in class FaultDetection
    • handleTransportDisconnect

      protected void handleTransportDisconnect(DiscoveryNode node)