Class PrimaryReplicaSyncer.ResyncTask

java.lang.Object
org.elasticsearch.tasks.Task
org.elasticsearch.index.shard.PrimaryReplicaSyncer.ResyncTask
Enclosing class:
PrimaryReplicaSyncer

public static class PrimaryReplicaSyncer.ResyncTask extends Task
  • Constructor Details

  • Method Details

    • setPhase

      public void setPhase(String phase)
      Set the current phase of the task.
    • getPhase

      public String getPhase()
      Get the current phase of the task.
    • getTotalOperations

      public int getTotalOperations()
      total number of translog operations that were captured by translog snapshot
    • setTotalOperations

      public void setTotalOperations(int totalOperations)
    • getResyncedOperations

      public int getResyncedOperations()
      number of operations that have been successfully replicated
    • setResyncedOperations

      public void setResyncedOperations(int resyncedOperations)
    • getSkippedOperations

      public int getSkippedOperations()
      number of translog operations that have been skipped
    • setSkippedOperations

      public void setSkippedOperations(int skippedOperations)
    • getStatus

      Description copied from class: Task
      Build a status for this task or null if this task doesn't have status. Since most tasks don't have status this defaults to returning null. While this can never perform IO it might be a costly operation, requiring collating lists of results, etc. So only use it if you need the value.
      Overrides:
      getStatus in class Task