Package org.elasticsearch.gateway
Class GatewayService
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.gateway.GatewayService
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,ClusterStateListener,LifecycleComponent,org.elasticsearch.common.lease.Releasable
public class GatewayService extends AbstractLifecycleComponent implements ClusterStateListener
-
Field Summary
Fields Modifier and Type Field Description static Setting<java.lang.Integer>EXPECTED_DATA_NODES_SETTINGstatic Setting<java.lang.Integer>EXPECTED_MASTER_NODES_SETTINGstatic Setting<java.lang.Integer>EXPECTED_NODES_SETTINGstatic Setting<java.lang.Integer>RECOVER_AFTER_DATA_NODES_SETTINGstatic Setting<java.lang.Integer>RECOVER_AFTER_MASTER_NODES_SETTINGstatic Setting<java.lang.Integer>RECOVER_AFTER_NODES_SETTINGstatic Setting<org.elasticsearch.common.unit.TimeValue>RECOVER_AFTER_TIME_SETTINGstatic ClusterBlockSTATE_NOT_RECOVERED_BLOCKFields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle -
Constructor Summary
Constructors Constructor Description GatewayService(Settings settings, AllocationService allocationService, ClusterService clusterService, ThreadPool threadPool, TransportNodesListGatewayMetaState listGatewayMetaState, Discovery discovery) -
Method Summary
Modifier and Type Method Description voidclusterChanged(ClusterChangedEvent event)Called when cluster state changes.protected voiddoClose()protected voiddoStart()protected voiddoStop()Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
EXPECTED_NODES_SETTING
-
EXPECTED_DATA_NODES_SETTING
-
EXPECTED_MASTER_NODES_SETTING
-
RECOVER_AFTER_TIME_SETTING
-
RECOVER_AFTER_NODES_SETTING
-
RECOVER_AFTER_DATA_NODES_SETTING
-
RECOVER_AFTER_MASTER_NODES_SETTING
-
STATE_NOT_RECOVERED_BLOCK
-
-
Constructor Details
-
GatewayService
@Inject public GatewayService(Settings settings, AllocationService allocationService, ClusterService clusterService, ThreadPool threadPool, TransportNodesListGatewayMetaState listGatewayMetaState, Discovery discovery)
-
-
Method Details
-
doStart
protected void doStart()- Specified by:
doStartin classAbstractLifecycleComponent
-
doStop
protected void doStop()- Specified by:
doStopin classAbstractLifecycleComponent
-
doClose
protected void doClose()- Specified by:
doClosein classAbstractLifecycleComponent
-
clusterChanged
Description copied from interface:ClusterStateListenerCalled when cluster state changes.- Specified by:
clusterChangedin interfaceClusterStateListener
-