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.CloseableA base class forMasterFaultDetection&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 Detail
-
CONNECT_ON_NETWORK_DISCONNECT_SETTING
public static final Setting<java.lang.Boolean> CONNECT_ON_NETWORK_DISCONNECT_SETTING
-
PING_RETRIES_SETTING
public static final Setting<java.lang.Integer> PING_RETRIES_SETTING
-
REGISTER_CONNECTION_LISTENER_SETTING
public static final Setting<java.lang.Boolean> REGISTER_CONNECTION_LISTENER_SETTING
-
threadPool
protected final ThreadPool threadPool
-
clusterName
protected final ClusterName clusterName
-
transportService
protected final TransportService transportService
-
registerConnectionListener
protected final boolean registerConnectionListener
-
connectionListener
protected final org.elasticsearch.discovery.zen.FaultDetection.FDConnectionListener connectionListener
-
connectOnNetworkDisconnect
protected final boolean connectOnNetworkDisconnect
-
pingInterval
protected final TimeValue pingInterval
-
pingRetryTimeout
protected final TimeValue pingRetryTimeout
-
pingRetryCount
protected final int pingRetryCount
-
-
Constructor Detail
-
FaultDetection
public FaultDetection(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterName clusterName)
-
-