|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.common.component.AbstractComponent
org.elasticsearch.common.component.AbstractLifecycleComponent<ClusterService>
org.elasticsearch.cluster.service.InternalClusterService
public class InternalClusterService
Field Summary |
---|
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent |
---|
lifecycle |
Fields inherited from class org.elasticsearch.common.component.AbstractComponent |
---|
componentSettings, logger, settings |
Constructor Summary | |
---|---|
InternalClusterService(Settings settings,
DiscoveryService discoveryService,
OperationRouting operationRouting,
TransportService transportService,
ThreadPool threadPool)
|
Method Summary | |
---|---|
void |
add(ClusterStateListener listener)
Adds a listener for updated cluster states. |
void |
add(TimeValue timeout,
TimeoutClusterStateListener listener)
Adds a cluster state listener that will timeout after the provided timeout. |
void |
addInitialStateBlock(ClusterBlock block)
Adds an initial block to be set on the first cluster state created. |
protected void |
doClose()
|
protected void |
doStart()
|
protected void |
doStop()
|
DiscoveryNode |
localNode()
The local node. |
OperationRouting |
operationRouting()
The operation routing. |
void |
remove(ClusterStateListener listener)
Removes a listener for updated cluster states. |
ClusterState |
state()
The current state. |
void |
submitStateUpdateTask(java.lang.String source,
ClusterStateUpdateTask updateTask)
Submits a task that will update the cluster state. |
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent |
---|
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop |
Methods inherited from class org.elasticsearch.common.component.AbstractComponent |
---|
nodeName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent |
---|
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop |
Methods inherited from interface org.elasticsearch.common.component.CloseableComponent |
---|
close |
Constructor Detail |
---|
@Inject public InternalClusterService(Settings settings, DiscoveryService discoveryService, OperationRouting operationRouting, TransportService transportService, ThreadPool threadPool)
Method Detail |
---|
public void addInitialStateBlock(ClusterBlock block) throws ElasticSearchIllegalStateException
ClusterService
addInitialStateBlock
in interface ClusterService
ElasticSearchIllegalStateException
protected void doStart() throws ElasticSearchException
doStart
in class AbstractLifecycleComponent<ClusterService>
ElasticSearchException
protected void doStop() throws ElasticSearchException
doStop
in class AbstractLifecycleComponent<ClusterService>
ElasticSearchException
protected void doClose() throws ElasticSearchException
doClose
in class AbstractLifecycleComponent<ClusterService>
ElasticSearchException
public DiscoveryNode localNode()
ClusterService
localNode
in interface ClusterService
public OperationRouting operationRouting()
ClusterService
operationRouting
in interface ClusterService
public ClusterState state()
ClusterService
state
in interface ClusterService
public void add(ClusterStateListener listener)
ClusterService
add
in interface ClusterService
public void remove(ClusterStateListener listener)
ClusterService
remove
in interface ClusterService
public void add(TimeValue timeout, TimeoutClusterStateListener listener)
ClusterService
add
in interface ClusterService
public void submitStateUpdateTask(java.lang.String source, ClusterStateUpdateTask updateTask)
ClusterService
submitStateUpdateTask
in interface ClusterService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |