org.elasticsearch.discovery.zen
Class ZenDiscovery
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.common.component.AbstractLifecycleComponent<Discovery>
org.elasticsearch.discovery.zen.ZenDiscovery
- All Implemented Interfaces:
- CloseableComponent, LifecycleComponent<Discovery>, Discovery, DiscoveryNodesProvider
public class ZenDiscovery
- extends AbstractLifecycleComponent<Discovery>
- implements Discovery, DiscoveryNodesProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_MASTER_BLOCK
public final ClusterBlock NO_MASTER_BLOCK
ZenDiscovery
@Inject
public ZenDiscovery(Settings settings,
ClusterName clusterName,
ThreadPool threadPool,
TransportService transportService,
ClusterService clusterService,
ZenPingService pingService)
doStart
protected void doStart()
throws ElasticSearchException
- Specified by:
doStart
in class AbstractLifecycleComponent<Discovery>
- Throws:
ElasticSearchException
doStop
protected void doStop()
throws ElasticSearchException
- Specified by:
doStop
in class AbstractLifecycleComponent<Discovery>
- Throws:
ElasticSearchException
doClose
protected void doClose()
throws ElasticSearchException
- Specified by:
doClose
in class AbstractLifecycleComponent<Discovery>
- Throws:
ElasticSearchException
localNode
public DiscoveryNode localNode()
- Specified by:
localNode
in interface Discovery
addListener
public void addListener(InitialStateDiscoveryListener listener)
- Specified by:
addListener
in interface Discovery
removeListener
public void removeListener(InitialStateDiscoveryListener listener)
- Specified by:
removeListener
in interface Discovery
nodeDescription
public java.lang.String nodeDescription()
- Specified by:
nodeDescription
in interface Discovery
nodes
public DiscoveryNodes nodes()
- Specified by:
nodes
in interface DiscoveryNodesProvider
publish
public void publish(ClusterState clusterState)
- Description copied from interface:
Discovery
- Publish all the changes to the cluster from the master (can be called just by the master). The publish
process should not publish this state to the master as well! (the master is sending it...).
- Specified by:
publish
in interface Discovery