Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class ClusterStateWaitUntilThresholdStep
java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
org.elasticsearch.xpack.core.ilm.ClusterStateWaitStep
org.elasticsearch.xpack.core.ilm.ClusterStateWaitUntilThresholdStep
This step wraps an
ClusterStateWaitStep in order to be able to manipulate what the next step will be, depending on the result of
the wrapped ClusterStateWaitStep.
If the action response is complete, the ClusterStateWaitUntilThresholdStep's nextStepKey will be the nextStepKey of the
wrapped action. When the threshold level is surpassed, if the underlying step's condition was not met, the nextStepKey will be changed to
the provided nextKeyOnThresholdBreach and this step will stop waiting.
Failures encountered whilst executing the wrapped action will be propagated directly.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.ilm.ClusterStateWaitStep
ClusterStateWaitStep.ResultNested classes/interfaces inherited from class org.elasticsearch.xpack.core.ilm.Step
Step.StepKey -
Constructor Summary
ConstructorsConstructorDescriptionClusterStateWaitUntilThresholdStep(ClusterStateWaitStep stepToExecute, Step.StepKey nextKeyOnThresholdBreach) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()isConditionMet(Index index, ClusterState clusterState) booleanIndicates if the step can be automatically retried when it encounters an execution error.Methods inherited from class org.elasticsearch.xpack.core.ilm.ClusterStateWaitStep
isCompletableMethods inherited from class org.elasticsearch.xpack.core.ilm.Step
getCurrentStepKey, getKey, toString
-
Constructor Details
-
ClusterStateWaitUntilThresholdStep
public ClusterStateWaitUntilThresholdStep(ClusterStateWaitStep stepToExecute, Step.StepKey nextKeyOnThresholdBreach)
-
-
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
-
isConditionMet
- Specified by:
isConditionMetin classClusterStateWaitStep
-
getNextStepKey
- Overrides:
getNextStepKeyin classStep
-
equals
-
hashCode
public int hashCode()
-