org.elasticsearch.discovery
Interface Discovery
- All Superinterfaces:
- CloseableComponent, LifecycleComponent<Discovery>
- All Known Implementing Classes:
- LocalDiscovery, ZenDiscovery
public interface Discovery
- extends LifecycleComponent<Discovery>
A pluggable module allowing to implement discovery of other nodes, publishing of the cluster
state to all nodes, electing a master of the cluster that raises cluster state change
events.
NO_MASTER_BLOCK
static final ClusterBlock NO_MASTER_BLOCK
localNode
DiscoveryNode localNode()
addListener
void addListener(InitialStateDiscoveryListener listener)
removeListener
void removeListener(InitialStateDiscoveryListener listener)
nodeDescription
String nodeDescription()
setNodeService
void setNodeService(@Nullable
NodeService nodeService)
- Here as a hack to solve dep injection problem...
publish
void publish(ClusterState clusterState)
- 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...).
Copyright © 2009-2012. All Rights Reserved.