Class ClusterStateWaitStep

java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
org.elasticsearch.xpack.core.ilm.ClusterStateWaitStep
Direct Known Subclasses:
AllocationRoutedStep, CheckNotDataStreamWriteIndexStep, CheckShrinkReadyStep, CheckTargetShardsCountStep, ClusterStateWaitUntilThresholdStep, DataTierMigrationRoutedStep, NoopStep, ShrunkenIndexCheckStep, ShrunkShardsAllocatedStep, WaitForActiveShardsStep, WaitForDataTierStep, WaitForIndexColorStep

public abstract class ClusterStateWaitStep extends Step
Checks whether a condition has been met based on the cluster state.

If checking a condition not based on the cluster state, or which may take time to evaluate, use AsyncWaitStep.

  • Constructor Details

  • Method Details

    • isConditionMet

      public abstract ClusterStateWaitStep.Result isConditionMet(Index index, ProjectState currentState)
    • isCompletable

      public boolean isCompletable()
      Whether the step can be completed at all. This only affects the ClusterStateWaitUntilThresholdStep which waits for a threshold to be met before retrying. Setting this to false means that ILM should retry the sequence immediately without waiting for the threshold to be met.