public static class ProcedureTestingUtility.LoadCounter extends Object implements org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader
Modifier and Type | Field and Description |
---|---|
private ArrayList<org.apache.hadoop.hbase.procedure2.Procedure> |
completed |
private ArrayList<org.apache.hadoop.hbase.procedure2.Procedure> |
corrupted |
private long |
maxProcId |
private Set<Long> |
procIds |
private ArrayList<org.apache.hadoop.hbase.procedure2.Procedure> |
runnable |
Constructor and Description |
---|
LoadCounter() |
LoadCounter(Set<Long> procIds) |
Modifier and Type | Method and Description |
---|---|
ArrayList<org.apache.hadoop.hbase.procedure2.Procedure> |
getCompleted() |
int |
getCompletedCount() |
ArrayList<org.apache.hadoop.hbase.procedure2.Procedure> |
getCorrupted() |
int |
getCorruptedCount() |
int |
getLoadedCount() |
long |
getMaxProcId() |
int |
getRunnableCount() |
ArrayList<org.apache.hadoop.hbase.procedure2.Procedure> |
getRunnables() |
void |
handleCorrupted(org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureIterator procIter) |
boolean |
isRunnable(long procId) |
void |
load(org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureIterator procIter) |
void |
reset() |
void |
reset(Set<Long> procIds) |
void |
setMaxProcId(long maxProcId) |
private long maxProcId
public LoadCounter()
public LoadCounter(Set<Long> procIds)
public void reset()
public long getMaxProcId()
public ArrayList<org.apache.hadoop.hbase.procedure2.Procedure> getRunnables()
public int getRunnableCount()
public ArrayList<org.apache.hadoop.hbase.procedure2.Procedure> getCompleted()
public int getCompletedCount()
public int getLoadedCount()
public ArrayList<org.apache.hadoop.hbase.procedure2.Procedure> getCorrupted()
public int getCorruptedCount()
public boolean isRunnable(long procId)
public void setMaxProcId(long maxProcId)
setMaxProcId
in interface org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader
public void load(org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureIterator procIter) throws IOException
load
in interface org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader
IOException
public void handleCorrupted(org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureIterator procIter) throws IOException
handleCorrupted
in interface org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.