Class MasterFaultDetection

java.lang.Object
org.elasticsearch.discovery.zen.FaultDetection
org.elasticsearch.discovery.zen.MasterFaultDetection
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class MasterFaultDetection
extends FaultDetection
A fault detection that pings the master periodically to see if its alive.
  • Field Details

    • MASTER_PING_ACTION_NAME

      public static final java.lang.String MASTER_PING_ACTION_NAME
      See Also:
      Constant Field Values
  • Constructor Details

  • Method Details

    • masterNode

      public DiscoveryNode masterNode()
    • addListener

      public void addListener​(MasterFaultDetection.Listener listener)
    • removeListener

      public void removeListener​(MasterFaultDetection.Listener listener)
    • restart

      public void restart​(DiscoveryNode masterNode, java.lang.String reason)
    • stop

      public void stop​(java.lang.String reason)
    • close

      public void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Overrides:
      close in class FaultDetection
    • handleTransportDisconnect

      protected void handleTransportDisconnect​(DiscoveryNode node)