Class ProcedureTestingUtility.LoadCounter

java.lang.Object
org.apache.hadoop.hbase.procedure2.ProcedureTestingUtility.LoadCounter
All Implemented Interfaces:
org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader
Enclosing class:
ProcedureTestingUtility

public static class ProcedureTestingUtility.LoadCounter extends Object implements org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader
  • Field Details

  • Constructor Details

  • Method Details

    • reset

      public void reset()
    • reset

      public void reset(Set<Long> procIds)
    • getMaxProcId

      public long getMaxProcId()
    • getRunnables

      public ArrayList<org.apache.hadoop.hbase.procedure2.Procedure> getRunnables()
    • getRunnableCount

      public int getRunnableCount()
    • getCompleted

      public ArrayList<org.apache.hadoop.hbase.procedure2.Procedure> getCompleted()
    • getCompletedCount

      public int getCompletedCount()
    • getLoadedCount

      public int getLoadedCount()
    • getCorrupted

      public ArrayList<org.apache.hadoop.hbase.procedure2.Procedure> getCorrupted()
    • getCorruptedCount

      public int getCorruptedCount()
    • isRunnable

      public boolean isRunnable(long procId)
    • setMaxProcId

      public void setMaxProcId(long maxProcId)
      Specified by:
      setMaxProcId in interface org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader
    • load

      public void load(org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureIterator procIter) throws IOException
      Specified by:
      load in interface org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader
      Throws:
      IOException
    • handleCorrupted

      public void handleCorrupted(org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureIterator procIter) throws IOException
      Specified by:
      handleCorrupted in interface org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader
      Throws:
      IOException