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
Modifier and TypeFieldDescriptionprotected ClusterName
protected org.elasticsearch.discovery.zen.FaultDetection.FDConnectionListener
protected boolean
static Setting<org.elasticsearch.core.TimeValue>
static Setting<org.elasticsearch.core.TimeValue>
protected org.elasticsearch.core.TimeValue
protected int
protected org.elasticsearch.core.TimeValue
protected boolean
protected ThreadPool
protected TransportService
-
Constructor Summary
ConstructorDescriptionFaultDetection(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-