Package org.elasticsearch.discovery.zen
Class NodesFaultDetection
java.lang.Object
org.elasticsearch.discovery.zen.FaultDetection
org.elasticsearch.discovery.zen.NodesFaultDetection
- All Implemented Interfaces:
Closeable,AutoCloseable
A fault detection of multiple nodes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionNodesFaultDetection(Settings settings, ThreadPool threadPool, TransportService transportService, Supplier<ClusterState> clusterStateSupplier, ClusterName clusterName) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(NodesFaultDetection.Listener listener)voidclose()getNodes()Gets the current set of nodes involved in node fault detection.protected voidvoidremoveListener(NodesFaultDetection.Listener listener)voidsetLocalNode(DiscoveryNode localNode)stop()stops all pingingvoidupdateNodesAndPing(ClusterState clusterState)make sure that nodes in clusterState are pinged.
-
Field Details
-
PING_ACTION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
NodesFaultDetection
public NodesFaultDetection(Settings settings, ThreadPool threadPool, TransportService transportService, Supplier<ClusterState> clusterStateSupplier, ClusterName clusterName)
-
-
Method Details
-
setLocalNode
-
addListener
-
removeListener
-
getNodes
Gets the current set of nodes involved in node fault detection. NB: For testing purposes. -
updateNodesAndPing
make sure that nodes in clusterState are pinged. Any pinging to nodes which are not part of the cluster will be stopped -
stop
stops all pinging -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFaultDetection
-
handleTransportDisconnect
-