Package org.elasticsearch.gateway
Class GatewayService
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.gateway.GatewayService
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- ClusterStateListener,- LifecycleComponent,- org.elasticsearch.core.Releasable
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic Setting<org.elasticsearch.core.TimeValue>static ClusterBlockFields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponentlifecycle
- 
Constructor SummaryConstructorsConstructorDescriptionGatewayService(Settings settings, AllocationService allocationService, ClusterService clusterService, ThreadPool threadPool, TransportNodesListGatewayMetaState listGatewayMetaState, Discovery discovery)
- 
Method SummaryModifier and TypeMethodDescriptionvoidclusterChanged(ClusterChangedEvent event)Called when cluster state changes.protected voiddoClose()protected voiddoStart()protected voiddoStop()Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponentaddLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
- 
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- 
doStartprotected void doStart()- Specified by:
- doStartin class- AbstractLifecycleComponent
 
- 
doStopprotected void doStop()- Specified by:
- doStopin class- AbstractLifecycleComponent
 
- 
doCloseprotected void doClose()- Specified by:
- doClosein class- AbstractLifecycleComponent
 
- 
clusterChangedDescription copied from interface:ClusterStateListenerCalled when cluster state changes.- Specified by:
- clusterChangedin interface- ClusterStateListener
 
 
-