org.elasticsearch.gateway
Class GatewayService

java.lang.Object
  extended by org.elasticsearch.util.component.AbstractComponent
      extended by org.elasticsearch.util.component.AbstractLifecycleComponent<GatewayService>
          extended by org.elasticsearch.gateway.GatewayService
All Implemented Interfaces:
ClusterStateListener, CloseableComponent, LifecycleComponent<GatewayService>

public class GatewayService
extends AbstractLifecycleComponent<GatewayService>
implements ClusterStateListener


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
GatewayService(Settings settings, Gateway gateway, ClusterService clusterService, DiscoveryService discoveryService, ThreadPool threadPool, MetaDataService metaDataService)
           
 
Method Summary
 void clusterChanged(ClusterChangedEvent event)
           
protected  void doClose()
           
protected  void doStart()
           
protected  void doStop()
           
 
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
 

Constructor Detail

GatewayService

@Inject
public GatewayService(Settings settings,
                             Gateway gateway,
                             ClusterService clusterService,
                             DiscoveryService discoveryService,
                             ThreadPool threadPool,
                             MetaDataService metaDataService)
Method Detail

doStart

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

doStop

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

doClose

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

clusterChanged

public void clusterChanged(ClusterChangedEvent event)
Specified by:
clusterChanged in interface ClusterStateListener