org.elasticsearch.discovery.local
Class LocalDiscovery
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.common.component.AbstractLifecycleComponent<Discovery>
org.elasticsearch.discovery.local.LocalDiscovery
- All Implemented Interfaces:
- CloseableComponent, LifecycleComponent<Discovery>, Discovery
public class LocalDiscovery
- extends AbstractLifecycleComponent<Discovery>
- implements Discovery
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalDiscovery
@Inject
public LocalDiscovery(Settings settings,
ClusterName clusterName,
TransportService transportService,
ClusterService clusterService)
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
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