org.elasticsearch.cluster.service
Class InternalClusterService
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.common.component.AbstractLifecycleComponent<ClusterService>
org.elasticsearch.cluster.service.InternalClusterService
- All Implemented Interfaces:
- ClusterService, CloseableComponent, LifecycleComponent<ClusterService>
public class InternalClusterService
- extends AbstractLifecycleComponent<ClusterService>
- implements ClusterService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalClusterService
@Inject
public InternalClusterService(Settings settings,
DiscoveryService discoveryService,
OperationRouting operationRouting,
TransportService transportService,
ThreadPool threadPool,
TimerService timerService)
doStart
protected void doStart()
throws ElasticSearchException
- Specified by:
doStart
in class AbstractLifecycleComponent<ClusterService>
- Throws:
ElasticSearchException
doStop
protected void doStop()
throws ElasticSearchException
- Specified by:
doStop
in class AbstractLifecycleComponent<ClusterService>
- Throws:
ElasticSearchException
doClose
protected void doClose()
throws ElasticSearchException
- Specified by:
doClose
in class AbstractLifecycleComponent<ClusterService>
- Throws:
ElasticSearchException
localNode
public DiscoveryNode localNode()
- Description copied from interface:
ClusterService
- The local node.
- Specified by:
localNode
in interface ClusterService
operationRouting
public OperationRouting operationRouting()
- Specified by:
operationRouting
in interface ClusterService
state
public ClusterState state()
- Description copied from interface:
ClusterService
- The current state.
- Specified by:
state
in interface ClusterService
add
public void add(ClusterStateListener listener)
- Description copied from interface:
ClusterService
- Adds a listener for updated cluster states.
- Specified by:
add
in interface ClusterService
remove
public void remove(ClusterStateListener listener)
- Description copied from interface:
ClusterService
- Removes a listener for updated cluster states.
- Specified by:
remove
in interface ClusterService
add
public void add(TimeValue timeout,
TimeoutClusterStateListener listener)
- Description copied from interface:
ClusterService
- Adds a cluster state listener that will timeout after the provided timeout.
- Specified by:
add
in interface ClusterService
submitStateUpdateTask
public void submitStateUpdateTask(java.lang.String source,
ClusterStateUpdateTask updateTask)
- Description copied from interface:
ClusterService
- Submits a task that will update the cluster state.
- Specified by:
submitStateUpdateTask
in interface ClusterService