Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class OperationModeUpdateTask
java.lang.Object
org.elasticsearch.cluster.ClusterStateUpdateTask
org.elasticsearch.xpack.core.ilm.OperationModeUpdateTask
- All Implemented Interfaces:
ClusterStateTaskListener
This task updates the operation mode state for ILM.
As stopping ILM proved to be an action we want to sometimes take in order to allow clusters to stabilise when under heavy load this
task might run at Priority.IMMEDIATE priority so please make sure to keep this task as lightweight as possible.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclusterStateProcessed(ClusterState oldState, ClusterState newState) execute(ClusterState currentState) static OperationModeUpdateTaskilmMode(OperationMode mode) voidstatic OperationModeUpdateTaskslmMode(OperationMode mode) static AckedClusterStateUpdateTaskwrap(OperationModeUpdateTask task, AcknowledgedRequest<?> request, ActionListener<AcknowledgedResponse> listener) Methods inherited from class org.elasticsearch.cluster.ClusterStateUpdateTask
priority, timeout
-
Method Details
-
wrap
public static AckedClusterStateUpdateTask wrap(OperationModeUpdateTask task, AcknowledgedRequest<?> request, ActionListener<AcknowledgedResponse> listener) -
ilmMode
-
slmMode
-
getILMOperationMode
-
getSLMOperationMode
-
execute
- Specified by:
executein classClusterStateUpdateTask
-
onFailure
-
clusterStateProcessed
- Overrides:
clusterStateProcessedin classClusterStateUpdateTask
-