Package org.elasticsearch.discovery.zen
Class FaultDetection
java.lang.Object
org.elasticsearch.discovery.zen.FaultDetection
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
MasterFaultDetection,NodesFaultDetection
public abstract class FaultDetection
extends java.lang.Object
implements java.io.Closeable
A base class for
MasterFaultDetection & NodesFaultDetection,
making sure both use the same setting.-
Field Summary
Fields Modifier and Type Field Description protected ClusterNameclusterNamestatic Setting<java.lang.Boolean>CONNECT_ON_NETWORK_DISCONNECT_SETTINGprotected org.elasticsearch.discovery.zen.FaultDetection.FDConnectionListenerconnectionListenerprotected booleanconnectOnNetworkDisconnectstatic Setting<TimeValue>PING_INTERVAL_SETTINGstatic Setting<java.lang.Integer>PING_RETRIES_SETTINGstatic Setting<TimeValue>PING_TIMEOUT_SETTINGprotected TimeValuepingIntervalprotected intpingRetryCountprotected TimeValuepingRetryTimeoutstatic Setting<java.lang.Boolean>REGISTER_CONNECTION_LISTENER_SETTINGprotected booleanregisterConnectionListenerprotected ThreadPoolthreadPoolprotected TransportServicetransportService -
Constructor Summary
Constructors Constructor Description FaultDetection(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterName clusterName) -
Method Summary
Modifier and Type Method Description voidclose()
-
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
-
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 interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-