|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClusterService
The cluster service allowing to both register for cluster state events (ClusterStateListener
)
and submit state update tasks (ClusterStateUpdateTask
.
Method Summary | |
---|---|
void |
add(ClusterStateListener listener)
Adds a listener for updated cluster states. |
void |
add(LocalNodeMasterListener listener)
Add a listener for on/off local node master events |
void |
add(TimeValue timeout,
TimeoutClusterStateListener listener)
Adds a cluster state listener that will timeout after the provided timeout. |
void |
addFirst(ClusterStateListener listener)
Adds a priority listener for updated cluster states. |
void |
addInitialStateBlock(ClusterBlock block)
Adds an initial block to be set on the first cluster state created. |
void |
addLast(ClusterStateListener listener)
Adds last listener. |
DiscoveryNode |
localNode()
The local node. |
OperationRouting |
operationRouting()
The operation routing. |
void |
remove(ClusterStateListener listener)
Removes a listener for updated cluster states. |
void |
remove(LocalNodeMasterListener listener)
Remove the given listener for on/off local master events |
ClusterState |
state()
The current state. |
void |
submitStateUpdateTask(String source,
ClusterStateUpdateTask updateTask)
Submits a task that will update the cluster state. |
Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent |
---|
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop |
Methods inherited from interface org.elasticsearch.common.component.CloseableComponent |
---|
close |
Method Detail |
---|
DiscoveryNode localNode()
ClusterState state()
void addInitialStateBlock(ClusterBlock block) throws ElasticSearchIllegalStateException
ElasticSearchIllegalStateException
OperationRouting operationRouting()
void addFirst(ClusterStateListener listener)
void addLast(ClusterStateListener listener)
void add(ClusterStateListener listener)
void remove(ClusterStateListener listener)
void add(LocalNodeMasterListener listener)
void remove(LocalNodeMasterListener listener)
void add(TimeValue timeout, TimeoutClusterStateListener listener)
void submitStateUpdateTask(String source, ClusterStateUpdateTask updateTask)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |