public class MasterFaultDetection extends FaultDetection
| Modifier and Type | Class and Description |
|---|---|
static interface |
MasterFaultDetection.Listener |
static class |
MasterFaultDetection.MasterPingRequest |
| Modifier and Type | Field and Description |
|---|---|
static String |
MASTER_PING_ACTION_NAME |
clusterName, connectionListener, connectOnNetworkDisconnect, pingInterval, pingRetryCount, pingRetryTimeout, registerConnectionListener, SETTING_CONNECT_ON_NETWORK_DISCONNECT, SETTING_PING_INTERVAL, SETTING_PING_RETRIES, SETTING_PING_TIMEOUT, SETTING_REGISTER_CONNECTION_LISTENER, threadPool, transportServicedeprecationLogger, logger, settings| Constructor and Description |
|---|
MasterFaultDetection(Settings settings,
ThreadPool threadPool,
TransportService transportService,
ClusterName clusterName,
ClusterService clusterService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(MasterFaultDetection.Listener listener) |
void |
close() |
protected void |
handleTransportDisconnect(DiscoveryNode node)
This method will be called when the
TransportService raised a node disconnected event |
DiscoveryNode |
masterNode() |
void |
removeListener(MasterFaultDetection.Listener listener) |
void |
restart(DiscoveryNode masterNode,
String reason) |
void |
start(DiscoveryNode masterNode,
String reason) |
void |
stop(String reason) |
logDeprecatedSetting, logRemovedSetting, nodeNamepublic static final String MASTER_PING_ACTION_NAME
public MasterFaultDetection(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterName clusterName, ClusterService clusterService)
public DiscoveryNode masterNode()
public void addListener(MasterFaultDetection.Listener listener)
public void removeListener(MasterFaultDetection.Listener listener)
public void restart(DiscoveryNode masterNode, String reason)
public void start(DiscoveryNode masterNode, String reason)
public void stop(String reason)
public void close()
close in class FaultDetectionprotected void handleTransportDisconnect(DiscoveryNode node)
FaultDetectionTransportService raised a node disconnected eventCopyright © 2009–2017. All rights reserved.