Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class LifecycleExecutionStateUtils
java.lang.Object
org.elasticsearch.xpack.core.ilm.LifecycleExecutionStateUtils
A utility class used for index lifecycle execution states
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterStatenewClusterStateWithLifecycleState(ClusterState clusterState, Index index, LifecycleExecutionState lifecycleState) Given a cluster state, index, and lifecycle state, returns a cluster state where the lifecycle state will be associated with the given index.
-
Method Details
-
newClusterStateWithLifecycleState
public static ClusterState newClusterStateWithLifecycleState(ClusterState clusterState, Index index, LifecycleExecutionState lifecycleState) Given a cluster state, index, and lifecycle state, returns a cluster state where the lifecycle state will be associated with the given index.The passed-in index must already be present in the cluster state, this method cannot be used to add an index.
-