org.elasticsearch.discovery.zen.ping.multicast
Class MulticastZenPing

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.multicast.MulticastZenPing
All Implemented Interfaces:
CloseableComponent, LifecycleComponent<ZenPing>, ZenPing

public class MulticastZenPing
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
MulticastZenPing(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterName clusterName, NetworkService networkService)
           
MulticastZenPing(ThreadPool threadPool, TransportService transportService, ClusterName clusterName)
           
 
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)
           
 
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

MulticastZenPing

public MulticastZenPing(ThreadPool threadPool,
                        TransportService transportService,
                        ClusterName clusterName)

MulticastZenPing

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

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)
Specified by:
ping in interface ZenPing


Copyright © 2009-2012. All Rights Reserved.