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.


Field Summary
static ClusterBlock NO_MASTER_BLOCK
           
 
Method Summary
 void addListener(InitialStateDiscoveryListener listener)
           
 DiscoveryNode localNode()
           
 String nodeDescription()
           
 void publish(ClusterState clusterState)
          Publish all the changes to the cluster from the master (can be called just by the master).
 void removeListener(InitialStateDiscoveryListener listener)
           
 void setNodeService(NodeService nodeService)
          Here as a hack to solve dep injection problem...
 
Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from interface org.elasticsearch.common.component.CloseableComponent
close
 

Field Detail

NO_MASTER_BLOCK

static final ClusterBlock NO_MASTER_BLOCK
Method Detail

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.