java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
org.elasticsearch.xpack.core.ilm.AsyncActionStep
org.elasticsearch.xpack.core.ilm.AsyncBranchingStep
This step changes its
getNextStepKey() depending on the
outcome of a defined async predicate.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.ilm.Step
Step.StepKey -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAsyncBranchingStep(Step.StepKey key, Step.StepKey nextStepKeyOnFalse, Step.StepKey nextStepKeyOnTrue, TriConsumer<IndexMetadata, ClusterState, ActionListener<Boolean>> asyncPredicate, Client client) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal Step.StepKeyinthashCode()booleanIndicates if the step can be automatically retried when it encounters an execution error.voidperformAction(IndexMetadata indexMetadata, ClusterState currentClusterState, ClusterStateObserver observer, ActionListener<Void> listener) Methods inherited from class org.elasticsearch.xpack.core.ilm.AsyncActionStep
getClient, indexSurvivesMethods inherited from class org.elasticsearch.xpack.core.ilm.Step
getCurrentStepKey, getKey, toString
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
AsyncBranchingStep
public AsyncBranchingStep(Step.StepKey key, Step.StepKey nextStepKeyOnFalse, Step.StepKey nextStepKeyOnTrue, TriConsumer<IndexMetadata, ClusterState, ActionListener<Boolean>> asyncPredicate, Client client)
-
-
Method Details
-
isRetryable
public boolean isRetryable()Description copied from class:StepIndicates if the step can be automatically retried when it encounters an execution error.- Specified by:
isRetryablein classStep
-
performAction
public void performAction(IndexMetadata indexMetadata, ClusterState currentClusterState, ClusterStateObserver observer, ActionListener<Void> listener) - Specified by:
performActionin classAsyncActionStep
-
getNextStepKey
- Overrides:
getNextStepKeyin classStep
-
equals
-
hashCode
public int hashCode()
-