org.elasticsearch.discovery.zen.ping
Class ZenPingService

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.common.component.AbstractLifecycleComponent<ZenPing>
          extended by org.elasticsearch.discovery.zen.ping.ZenPingService
All Implemented Interfaces:
CloseableComponent, LifecycleComponent<ZenPing>, ZenPing

public class ZenPingService
extends AbstractLifecycleComponent<ZenPing>
implements ZenPing


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.discovery.zen.ping.ZenPing
ZenPing.PingListener, ZenPing.PingResponse
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
ZenPingService(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterName clusterName, NetworkService networkService)
           
 
Method Summary
protected  void doClose()
           
protected  void doStart()
           
protected  void doStop()
           
 void ping(ZenPing.PingListener listener, TimeValue timeout)
           
 ZenPing.PingResponse[] pingAndWait(TimeValue timeout)
           
 void setNodesProvider(DiscoveryNodesProvider nodesProvider)
           
 org.elasticsearch.common.collect.ImmutableList<? extends ZenPing> zenPings()
           
 void zenPings(org.elasticsearch.common.collect.ImmutableList<? extends ZenPing> pings)
           
 
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from interface org.elasticsearch.common.component.CloseableComponent
close
 

Constructor Detail

ZenPingService

@Inject
public ZenPingService(Settings settings,
                             ThreadPool threadPool,
                             TransportService transportService,
                             ClusterName clusterName,
                             NetworkService networkService)
Method Detail

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