Class WaitForSnapshotStep


public class WaitForSnapshotStep extends AsyncWaitStep
A step that waits for snapshot to be taken by SLM that includes the index in question to ensure we have backup before we delete the index. It will signal error if it can't get data needed to do the check (action time from ILM and SLM metadata) and will only return success if execution of SLM policy took place after index entered the wait for snapshot action and the latest successful snapshot includes the index.
  • Method Details

    • evaluateCondition

      public void evaluateCondition(ProjectState state, Index index, AsyncWaitStep.Listener listener, org.elasticsearch.core.TimeValue masterTimeout)
      Specified by:
      evaluateCondition in class AsyncWaitStep
    • getPolicy

      public String getPolicy()
    • isRetryable

      public boolean isRetryable()
      Description copied from class: Step
      Indicates if the step can be automatically retried when it encounters an execution error.
      Specified by:
      isRetryable in class Step
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Step
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Step