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
public abstract class FaultDetection extends Object implements Closeable
A base class forMasterFaultDetection&NodesFaultDetection, making sure both use the same setting.
-
-
Field Summary
Fields Modifier and Type Field Description protected ClusterNameclusterNamestatic Setting<Boolean>CONNECT_ON_NETWORK_DISCONNECT_SETTINGprotected org.elasticsearch.discovery.zen.FaultDetection.FDConnectionListenerconnectionListenerprotected booleanconnectOnNetworkDisconnectstatic Setting<TimeValue>PING_INTERVAL_SETTINGstatic Setting<Integer>PING_RETRIES_SETTINGstatic Setting<TimeValue>PING_TIMEOUT_SETTINGprotected TimeValuepingIntervalprotected intpingRetryCountprotected TimeValuepingRetryTimeoutstatic Setting<Boolean>REGISTER_CONNECTION_LISTENER_SETTINGprotected booleanregisterConnectionListenerprotected ThreadPoolthreadPoolprotected TransportServicetransportService
-
Constructor Summary
Constructors Constructor Description FaultDetection(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterName clusterName)
-
-
-
Field Detail
-
CONNECT_ON_NETWORK_DISCONNECT_SETTING
public static final Setting<Boolean> CONNECT_ON_NETWORK_DISCONNECT_SETTING
-
REGISTER_CONNECTION_LISTENER_SETTING
public static final Setting<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)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-