Class TestProcedureMetrics.ProcedureMetrics
java.lang.Object
org.apache.hadoop.hbase.procedure2.Procedure<TEnvironment>
org.apache.hadoop.hbase.procedure2.SequentialProcedure<TestProcedureMetrics.TestProcEnv>
org.apache.hadoop.hbase.procedure2.TestProcedureMetrics.ProcedureMetrics
- All Implemented Interfaces:
Comparable<org.apache.hadoop.hbase.procedure2.Procedure<TestProcedureMetrics.TestProcEnv>>
- Enclosing class:
- TestProcedureMetrics
public static class TestProcedureMetrics.ProcedureMetrics
extends org.apache.hadoop.hbase.procedure2.SequentialProcedure<TestProcedureMetrics.TestProcEnv>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.procedure2.Procedure
org.apache.hadoop.hbase.procedure2.Procedure.LockState
-
Field Summary
Modifier and TypeFieldDescriptionstatic long
static long
private TestProcedureMetrics.ProcedureMetrics[]
private boolean
static long
private boolean
private int
private int
Fields inherited from class org.apache.hadoop.hbase.procedure2.Procedure
NO_PROC_ID, NO_TIMEOUT
-
Constructor Summary
ConstructorDescriptionProcedureMetrics
(boolean success) ProcedureMetrics
(boolean success, boolean yield) ProcedureMetrics
(boolean success, boolean yield, int yieldCount) ProcedureMetrics
(boolean success, boolean yield, int yieldCount, TestProcedureMetrics.ProcedureMetrics[] subprocs) ProcedureMetrics
(boolean success, TestProcedureMetrics.ProcedureMetrics[] subprocs) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected org.apache.hadoop.hbase.procedure2.Procedure[]
protected void
protected void
updateMetricsOnFinish
(TestProcedureMetrics.TestProcEnv env, long time, boolean success) protected void
Methods inherited from class org.apache.hadoop.hbase.procedure2.SequentialProcedure
deserializeStateData, doExecute, doRollback, serializeStateData
Methods inherited from class org.apache.hadoop.hbase.procedure2.Procedure
acquireLock, addStackIndex, afterReplay, beforeReplay, bypass, compareTo, completionCleanup, doAcquireLock, doReleaseLock, elapsedTime, getChildrenLatch, getException, getLastUpdate, getNonceKey, getOwner, getParentProcId, getProcedureMetrics, getProcId, getProcIdHashCode, getProcName, getResult, getRootProcedureId, getRootProcId, getStackIndexes, getState, getSubmittedTime, getTimeout, getTimeoutTimestamp, hasChildren, hasException, hasLock, hasOwner, hasParent, hasTimeout, haveSameParent, holdLock, incChildrenLatch, isBypass, isFailed, isFinished, isInitializing, isLockedWhenLoading, isRollbackSupported, isRunnable, isSuccess, isWaiting, isYieldAfterExecutionStep, lockedWhenLoading, needPersistence, releaseLock, removeStackIndex, resetPersistence, restoreLock, setAbortFailure, setChildrenLatch, setExecuted, setFailure, setFailure, setLastUpdate, setNonceKey, setOwner, setOwner, setParentProcId, setProcId, setResult, setRootProcId, setStackIndexes, setState, setSubmittedTime, setTimeout, setTimeoutFailure, shouldWaitClientAck, skipPersistence, suspend, toString, toStringClass, toStringClassDetails, toStringDetails, toStringSimpleSB, toStringState, tryRunnable, updateTimestamp, waitInitialized, wasExecuted
-
Field Details
-
beginCount
-
successCount
-
failedCount
-
success
-
yield
-
yieldCount
-
yieldNum
-
subprocs
-
-
Constructor Details
-
ProcedureMetrics
public ProcedureMetrics() -
ProcedureMetrics
-
ProcedureMetrics
-
ProcedureMetrics
-
ProcedureMetrics
-
ProcedureMetrics
public ProcedureMetrics(boolean success, boolean yield, int yieldCount, TestProcedureMetrics.ProcedureMetrics[] subprocs)
-
-
Method Details
-
updateMetricsOnSubmit
- Overrides:
updateMetricsOnSubmit
in classorg.apache.hadoop.hbase.procedure2.Procedure<TestProcedureMetrics.TestProcEnv>
-
execute
protected org.apache.hadoop.hbase.procedure2.Procedure[] execute(TestProcedureMetrics.TestProcEnv env) throws org.apache.hadoop.hbase.procedure2.ProcedureYieldException, org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException, InterruptedException - Specified by:
execute
in classorg.apache.hadoop.hbase.procedure2.Procedure<TestProcedureMetrics.TestProcEnv>
- Throws:
org.apache.hadoop.hbase.procedure2.ProcedureYieldException
org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException
InterruptedException
-
rollback
protected void rollback(TestProcedureMetrics.TestProcEnv env) throws IOException, InterruptedException - Specified by:
rollback
in classorg.apache.hadoop.hbase.procedure2.Procedure<TestProcedureMetrics.TestProcEnv>
- Throws:
IOException
InterruptedException
-
abort
- Specified by:
abort
in classorg.apache.hadoop.hbase.procedure2.Procedure<TestProcedureMetrics.TestProcEnv>
-
updateMetricsOnFinish
protected void updateMetricsOnFinish(TestProcedureMetrics.TestProcEnv env, long time, boolean success) - Overrides:
updateMetricsOnFinish
in classorg.apache.hadoop.hbase.procedure2.Procedure<TestProcedureMetrics.TestProcEnv>
-