org.elasticsearch.cluster.service
Class InternalClusterService

java.lang.Object
  extended by org.elasticsearch.util.component.AbstractComponent
      extended by org.elasticsearch.util.component.AbstractLifecycleComponent<ClusterService>
          extended by org.elasticsearch.cluster.service.InternalClusterService
All Implemented Interfaces:
ClusterService, CloseableComponent, LifecycleComponent<ClusterService>

public class InternalClusterService
extends AbstractLifecycleComponent<ClusterService>
implements ClusterService


Field Summary
 
Fields inherited from class org.elasticsearch.util.component.AbstractLifecycleComponent
lifecycle
 
Fields inherited from class org.elasticsearch.util.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
InternalClusterService(Settings settings, DiscoveryService discoveryService, TransportService transportService, ThreadPool threadPool)
           
 
Method Summary
 void add(ClusterStateListener listener)
           
 void add(TimeValue timeout, TimeoutClusterStateListener listener)
           
protected  void doClose()
           
protected  void doStart()
           
protected  void doStop()
           
 void remove(ClusterStateListener listener)
           
 void remove(TimeoutClusterStateListener listener)
           
 ClusterState state()
           
 void submitStateUpdateTask(java.lang.String source, ClusterStateUpdateTask updateTask)
           
 
Methods inherited from class org.elasticsearch.util.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from class org.elasticsearch.util.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.util.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from interface org.elasticsearch.util.component.CloseableComponent
close
 

Constructor Detail

InternalClusterService

@Inject
public InternalClusterService(Settings settings,
                                     DiscoveryService discoveryService,
                                     TransportService transportService,
                                     ThreadPool threadPool)
Method Detail

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

state

public ClusterState state()
Specified by:
state in interface ClusterService

add

public void add(ClusterStateListener listener)
Specified by:
add in interface ClusterService

remove

public void remove(ClusterStateListener listener)
Specified by:
remove in interface ClusterService

add

public void add(TimeValue timeout,
                TimeoutClusterStateListener listener)
Specified by:
add in interface ClusterService

remove

public void remove(TimeoutClusterStateListener listener)
Specified by:
remove in interface ClusterService

submitStateUpdateTask

public void submitStateUpdateTask(java.lang.String source,
                                  ClusterStateUpdateTask updateTask)
Specified by:
submitStateUpdateTask in interface ClusterService