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 forMasterFaultDetection
&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<TimeValue>
PING_INTERVAL_SETTING
static Setting<java.lang.Integer>
PING_RETRIES_SETTING
static Setting<TimeValue>
PING_TIMEOUT_SETTING
protected TimeValue
pingInterval
protected int
pingRetryCount
protected 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()
-
-
-
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)
-
-