org.elasticsearch.discovery.zen.ping
Class ZenPingService
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.common.component.AbstractLifecycleComponent<ZenPing>
org.elasticsearch.discovery.zen.ping.ZenPingService
- All Implemented Interfaces:
- CloseableComponent, LifecycleComponent<ZenPing>, ZenPing
public class ZenPingService
- extends AbstractLifecycleComponent<ZenPing>
- implements ZenPing
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZenPingService
@Inject
public ZenPingService(Settings settings,
ThreadPool threadPool,
TransportService transportService,
ClusterName clusterName,
NetworkService networkService)
zenPings
public org.elasticsearch.common.collect.ImmutableList<? extends ZenPing> zenPings()
zenPings
public void zenPings(org.elasticsearch.common.collect.ImmutableList<? extends ZenPing> pings)
setNodesProvider
public void setNodesProvider(DiscoveryNodesProvider nodesProvider)
- Specified by:
setNodesProvider
in interface ZenPing
doStart
protected void doStart()
throws ElasticSearchException
- Specified by:
doStart
in class AbstractLifecycleComponent<ZenPing>
- Throws:
ElasticSearchException
doStop
protected void doStop()
throws ElasticSearchException
- Specified by:
doStop
in class AbstractLifecycleComponent<ZenPing>
- Throws:
ElasticSearchException
doClose
protected void doClose()
throws ElasticSearchException
- Specified by:
doClose
in class AbstractLifecycleComponent<ZenPing>
- Throws:
ElasticSearchException
pingAndWait
public ZenPing.PingResponse[] pingAndWait(TimeValue timeout)
ping
public void ping(ZenPing.PingListener listener,
TimeValue timeout)
throws ElasticSearchException
- Specified by:
ping
in interface ZenPing
- Throws:
ElasticSearchException