Package org.elasticsearch.discovery.zen
Class FaultDetection
java.lang.Object
org.elasticsearch.discovery.zen.FaultDetection
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
MasterFaultDetection,NodesFaultDetection
A base class for
MasterFaultDetection & NodesFaultDetection,
making sure both use the same setting.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClusterNameprotected org.elasticsearch.discovery.zen.FaultDetection.FDConnectionListenerprotected booleanstatic Setting<org.elasticsearch.core.TimeValue>static Setting<org.elasticsearch.core.TimeValue>protected org.elasticsearch.core.TimeValueprotected intprotected org.elasticsearch.core.TimeValueprotected booleanprotected ThreadPoolprotected TransportService -
Constructor Summary
ConstructorsConstructorDescriptionFaultDetection(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterName clusterName) -
Method Summary
-
Field Details
-
CONNECT_ON_NETWORK_DISCONNECT_SETTING
-
PING_INTERVAL_SETTING
-
PING_TIMEOUT_SETTING
-
PING_RETRIES_SETTING
-
REGISTER_CONNECTION_LISTENER_SETTING
-
threadPool
-
clusterName
-
transportService
-
registerConnectionListener
protected final boolean registerConnectionListener -
connectionListener
protected final org.elasticsearch.discovery.zen.FaultDetection.FDConnectionListener connectionListener -
connectOnNetworkDisconnect
protected final boolean connectOnNetworkDisconnect -
pingInterval
protected final org.elasticsearch.core.TimeValue pingInterval -
pingRetryTimeout
protected final org.elasticsearch.core.TimeValue pingRetryTimeout -
pingRetryCount
protected final int pingRetryCount
-
-
Constructor Details
-
FaultDetection
public FaultDetection(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterName clusterName)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-