public class UnicastZenPing extends AbstractLifecycleComponent<ZenPing> implements ZenPing
| Modifier and Type | Class and Description |
|---|---|
static class |
UnicastZenPing.UnicastPingRequest |
ZenPing.PingCollection, ZenPing.PingListener, ZenPing.PingResponse| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_NAME |
static String |
DISCOVERY_ZEN_PING_UNICAST_HOSTS |
static int |
LIMIT_FOREIGN_PORTS_COUNT |
static int |
LIMIT_LOCAL_PORTS_COUNT |
lifecycledeprecationLogger, logger, settings| Constructor and Description |
|---|
UnicastZenPing(Settings settings,
ThreadPool threadPool,
TransportService transportService,
ClusterName clusterName,
Version version,
ElectMasterService electMasterService,
Set<UnicastHostsProvider> unicastHostsProviders) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHostsProvider(UnicastHostsProvider provider) |
void |
clearTemporalResponses()
Clears the list of cached ping responses.
|
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
void |
ping(ZenPing.PingListener listener,
TimeValue timeout) |
ZenPing.PingResponse[] |
pingAndWait(TimeValue timeout) |
void |
removeHostsProvider(UnicastHostsProvider provider) |
void |
setPingContextProvider(PingContextProvider contextProvider) |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stoplogDeprecatedSetting, logRemovedSetting, nodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifecycleListener, lifecycleState, removeLifecycleListener, start, stopclosepublic static final String ACTION_NAME
public static final String DISCOVERY_ZEN_PING_UNICAST_HOSTS
public static final int LIMIT_FOREIGN_PORTS_COUNT
public static final int LIMIT_LOCAL_PORTS_COUNT
@Inject public UnicastZenPing(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterName clusterName, Version version, ElectMasterService electMasterService, @Nullable Set<UnicastHostsProvider> unicastHostsProviders)
protected void doStart()
doStart in class AbstractLifecycleComponent<ZenPing>protected void doStop()
doStop in class AbstractLifecycleComponent<ZenPing>protected void doClose()
doClose in class AbstractLifecycleComponent<ZenPing>public void addHostsProvider(UnicastHostsProvider provider)
public void removeHostsProvider(UnicastHostsProvider provider)
public void setPingContextProvider(PingContextProvider contextProvider)
setPingContextProvider in interface ZenPingpublic void clearTemporalResponses()
public ZenPing.PingResponse[] pingAndWait(TimeValue timeout)
public void ping(ZenPing.PingListener listener, TimeValue timeout)
Copyright © 2009–2017. All rights reserved.