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 ClusterName
clusterName
static Setting<java.lang.Boolean>
CONNECT_ON_NETWORK_DISCONNECT_SETTING
protected org.elasticsearch.discovery.zen.FaultDetection.FDConnectionListener
connectionListener
protected boolean
connectOnNetworkDisconnect
static Setting<org.elasticsearch.common.unit.TimeValue>
PING_INTERVAL_SETTING
static Setting<java.lang.Integer>
PING_RETRIES_SETTING
static Setting<org.elasticsearch.common.unit.TimeValue>
PING_TIMEOUT_SETTING
protected org.elasticsearch.common.unit.TimeValue
pingInterval
protected int
pingRetryCount
protected org.elasticsearch.common.unit.TimeValue
pingRetryTimeout
static Setting<java.lang.Boolean>
REGISTER_CONNECTION_LISTENER_SETTING
protected boolean
registerConnectionListener
protected ThreadPool
threadPool
protected TransportService
transportService
-
Constructor Summary
Constructors Constructor Description FaultDetection(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterName clusterName)
-
Method Summary
Modifier and Type Method Description void
close()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.common.unit.TimeValue pingInterval -
pingRetryTimeout
protected final org.elasticsearch.common.unit.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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-