org.elasticsearch.cluster.routing
Class RoutingService

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.common.component.AbstractLifecycleComponent<RoutingService>
          extended by org.elasticsearch.cluster.routing.RoutingService
All Implemented Interfaces:
ClusterStateListener, CloseableComponent, LifecycleComponent<RoutingService>

public class RoutingService
extends AbstractLifecycleComponent<RoutingService>
implements ClusterStateListener


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
RoutingService(Settings settings, ThreadPool threadPool, ClusterService clusterService, AllocationService allocationService)
           
 
Method Summary
 void clusterChanged(ClusterChangedEvent event)
          Called when cluster state changes.
protected  void doClose()
           
protected  void doStart()
           
protected  void doStop()
           
 
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
 

Constructor Detail

RoutingService

@Inject
public RoutingService(Settings settings,
                             ThreadPool threadPool,
                             ClusterService clusterService,
                             AllocationService allocationService)
Method Detail

doStart

protected void doStart()
                throws ElasticSearchException
Specified by:
doStart in class AbstractLifecycleComponent<RoutingService>
Throws:
ElasticSearchException

doStop

protected void doStop()
               throws ElasticSearchException
Specified by:
doStop in class AbstractLifecycleComponent<RoutingService>
Throws:
ElasticSearchException

doClose

protected void doClose()
                throws ElasticSearchException
Specified by:
doClose in class AbstractLifecycleComponent<RoutingService>
Throws:
ElasticSearchException

clusterChanged

public void clusterChanged(ClusterChangedEvent event)
Description copied from interface: ClusterStateListener
Called when cluster state changes.

Specified by:
clusterChanged in interface ClusterStateListener


Copyright © 2009-2012. All Rights Reserved.