java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
Direct Known Subclasses:
AsyncActionStep, AsyncWaitStep, ClusterStateActionStep, ClusterStateWaitStep, ErrorStep, PhaseCompleteStep, TerminalPolicyStep

public abstract class Step extends Object
Represents one part of the execution of a LifecycleAction.
  • Constructor Details

  • Method Details

    • getCurrentStepKey

      @Nullable public static Step.StepKey getCurrentStepKey(LifecycleExecutionState lifecycleState)
      Retrieves the current Step.StepKey from the lifecycle state. Note that it is illegal for the step to be set with the phase and/or action unset, or for the step to be unset with the phase and/or action set. All three settings must be either present or missing.
      Parameters:
      lifecycleState - the index custom data to extract the Step.StepKey from.
    • getKey

      public final Step.StepKey getKey()
    • getNextStepKey

      public Step.StepKey getNextStepKey()
    • isRetryable

      public abstract boolean isRetryable()
      Indicates if the step can be automatically retried when it encounters an execution error.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object