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 Summary
Modifier and TypeFieldDescriptionstatic final Setting<org.elasticsearch.core.TimeValue>
static final ClusterBlock
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
-
Constructor Summary
ConstructorDescriptionGatewayService
(Settings settings, RerouteService rerouteService, ClusterService clusterService, ThreadPool threadPool) -
Method Summary
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
-
Field Details
-
EXPECTED_DATA_NODES_SETTING
-
RECOVER_AFTER_TIME_SETTING
-
RECOVER_AFTER_DATA_NODES_SETTING
-
STATE_NOT_RECOVERED_BLOCK
-
-
Constructor Details
-
GatewayService
@Inject public GatewayService(Settings settings, RerouteService rerouteService, ClusterService clusterService, ThreadPool threadPool)
-
-
Method Details
-
doStart
protected void doStart()- Specified by:
doStart
in classAbstractLifecycleComponent
-
doStop
protected void doStop()- Specified by:
doStop
in classAbstractLifecycleComponent
-
doClose
protected void doClose()- Specified by:
doClose
in classAbstractLifecycleComponent
-
clusterChanged
Description copied from interface:ClusterStateListener
Called when cluster state changes.Cluster states are applied one-by-one which means they can be a performance bottleneck. Implementations of this method should therefore be fast, so please consider forking work into the background rather than doing everything inline.
- Specified by:
clusterChanged
in interfaceClusterStateListener
-