Package org.elasticsearch.discovery.zen
Class MasterFaultDetection
java.lang.Object
org.elasticsearch.discovery.zen.FaultDetection
org.elasticsearch.discovery.zen.MasterFaultDetection
- All Implemented Interfaces:
Closeable
,AutoCloseable
A fault detection that pings the master periodically to see if its alive.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
static class
static class
Thrown when a ping reaches the wrong node -
Field Summary
Fields inherited from class org.elasticsearch.discovery.zen.FaultDetection
clusterName, CONNECT_ON_NETWORK_DISCONNECT_SETTING, connectionListener, connectOnNetworkDisconnect, PING_INTERVAL_SETTING, PING_RETRIES_SETTING, PING_TIMEOUT_SETTING, pingInterval, pingRetryCount, pingRetryTimeout, REGISTER_CONNECTION_LISTENER_SETTING, registerConnectionListener, threadPool, transportService
-
Constructor Summary
ConstructorDescriptionMasterFaultDetection(Settings settings, ThreadPool threadPool, TransportService transportService, Supplier<ClusterState> clusterStateSupplier, MasterService masterService, ClusterName clusterName)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener(MasterFaultDetection.Listener listener)
void
close()
protected void
void
removeListener(MasterFaultDetection.Listener listener)
void
restart(DiscoveryNode masterNode, String reason)
void
-
Field Details
-
MASTER_PING_ACTION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
MasterFaultDetection
public MasterFaultDetection(Settings settings, ThreadPool threadPool, TransportService transportService, Supplier<ClusterState> clusterStateSupplier, MasterService masterService, ClusterName clusterName)
-
-
Method Details
-
masterNode
-
addListener
-
removeListener
-
restart
-
stop
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFaultDetection
-
handleTransportDisconnect
-