public class UnicastZenPing extends AbstractLifecycleComponent 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 java.lang.String |
ACTION_NAME |
static Setting<java.lang.Integer> |
DISCOVERY_ZEN_PING_UNICAST_CONCURRENT_CONNECTS_SETTING |
static Setting<java.util.List<java.lang.String>> |
DISCOVERY_ZEN_PING_UNICAST_HOSTS_SETTING |
static int |
LIMIT_FOREIGN_PORTS_COUNT |
static int |
LIMIT_LOCAL_PORTS_COUNT |
lifecycle
deprecationLogger, logger, settings
Constructor and Description |
---|
UnicastZenPing(Settings settings,
ThreadPool threadPool,
TransportService transportService,
ElectMasterService electMasterService,
java.util.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() |
protected Version |
getVersion() |
void |
ping(ZenPing.PingListener listener,
TimeValue duration) |
ZenPing.PingResponse[] |
pingAndWait(TimeValue duration) |
void |
setPingContextProvider(PingContextProvider contextProvider) |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
close
public static final java.lang.String ACTION_NAME
public static final Setting<java.util.List<java.lang.String>> DISCOVERY_ZEN_PING_UNICAST_HOSTS_SETTING
public static final Setting<java.lang.Integer> DISCOVERY_ZEN_PING_UNICAST_CONCURRENT_CONNECTS_SETTING
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, ElectMasterService electMasterService, @Nullable java.util.Set<UnicastHostsProvider> unicastHostsProviders)
protected void doStart()
doStart
in class AbstractLifecycleComponent
protected void doStop()
doStop
in class AbstractLifecycleComponent
protected void doClose()
doClose
in class AbstractLifecycleComponent
public void addHostsProvider(UnicastHostsProvider provider)
public void setPingContextProvider(PingContextProvider contextProvider)
setPingContextProvider
in interface ZenPing
public void clearTemporalResponses()
public ZenPing.PingResponse[] pingAndWait(TimeValue duration)
public void ping(ZenPing.PingListener listener, TimeValue duration)
protected Version getVersion()