org.elasticsearch.discovery.zen.ping.unicast
Class UnicastZenPing
java.lang.Object
org.elasticsearch.util.component.AbstractComponent
org.elasticsearch.util.component.AbstractLifecycleComponent<ZenPing>
org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing
- All Implemented Interfaces:
- ZenPing, CloseableComponent, LifecycleComponent<ZenPing>
public class UnicastZenPing
- extends AbstractLifecycleComponent<ZenPing>
- implements ZenPing
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnicastZenPing
public UnicastZenPing(ThreadPool threadPool,
TransportService transportService,
ClusterName clusterName)
UnicastZenPing
public UnicastZenPing(Settings settings,
ThreadPool threadPool,
TransportService transportService,
ClusterName clusterName)
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
buildDynamicNodes
protected java.util.List<DiscoveryNode> buildDynamicNodes()
setNodesProvider
public void setNodesProvider(DiscoveryNodesProvider nodesProvider)
- Specified by:
setNodesProvider
in interface ZenPing
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