public static class TestProcedureMetrics.ProcedureMetrics extends org.apache.hadoop.hbase.procedure2.SequentialProcedure<TestProcedureMetrics.TestProcEnv>
Modifier and Type | Field and Description |
---|---|
static long |
beginCount |
static long |
failedCount |
private TestProcedureMetrics.ProcedureMetrics[] |
subprocs |
private boolean |
success |
static long |
successCount |
private boolean |
yield |
private int |
yieldCount |
private int |
yieldNum |
Constructor and Description |
---|
ProcedureMetrics() |
ProcedureMetrics(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) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
abort(TestProcedureMetrics.TestProcEnv env) |
protected org.apache.hadoop.hbase.procedure2.Procedure[] |
execute(TestProcedureMetrics.TestProcEnv env) |
protected void |
rollback(TestProcedureMetrics.TestProcEnv env) |
protected void |
updateMetricsOnFinish(TestProcedureMetrics.TestProcEnv env,
long time,
boolean success) |
protected void |
updateMetricsOnSubmit(TestProcedureMetrics.TestProcEnv env) |
deserializeStateData, doExecute, doRollback, serializeStateData
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, isRunnable, isSuccess, isWaiting, isYieldAfterExecutionStep, lockedWhenLoading, needPersistence, releaseLock, removeStackIndex, resetPersistence, restoreLock, setAbortFailure, setChildrenLatch, setFailure, setFailure, setLastUpdate, setNonceKey, setOwner, setOwner, setParentProcId, setProcId, setResult, setRootProcId, setStackIndexes, setState, setSubmittedTime, setTimeout, setTimeoutFailure, shouldWaitClientAck, skipPersistence, toString, toStringClass, toStringClassDetails, toStringDetails, toStringSimpleSB, toStringState, tryRunnable, updateTimestamp, waitInitialized, wasExecuted
public static long beginCount
public static long successCount
public static long failedCount
private boolean success
private boolean yield
private int yieldCount
private int yieldNum
private TestProcedureMetrics.ProcedureMetrics[] subprocs
public ProcedureMetrics()
public ProcedureMetrics(boolean success)
public ProcedureMetrics(boolean success, boolean yield)
public ProcedureMetrics(boolean success, boolean yield, int yieldCount)
public ProcedureMetrics(boolean success, TestProcedureMetrics.ProcedureMetrics[] subprocs)
public ProcedureMetrics(boolean success, boolean yield, int yieldCount, TestProcedureMetrics.ProcedureMetrics[] subprocs)
protected void updateMetricsOnSubmit(TestProcedureMetrics.TestProcEnv env)
updateMetricsOnSubmit
in class org.apache.hadoop.hbase.procedure2.Procedure<TestProcedureMetrics.TestProcEnv>
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
execute
in class org.apache.hadoop.hbase.procedure2.Procedure<TestProcedureMetrics.TestProcEnv>
org.apache.hadoop.hbase.procedure2.ProcedureYieldException
org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException
InterruptedException
protected void rollback(TestProcedureMetrics.TestProcEnv env) throws IOException, InterruptedException
rollback
in class org.apache.hadoop.hbase.procedure2.Procedure<TestProcedureMetrics.TestProcEnv>
IOException
InterruptedException
protected boolean abort(TestProcedureMetrics.TestProcEnv env)
abort
in class org.apache.hadoop.hbase.procedure2.Procedure<TestProcedureMetrics.TestProcEnv>
protected void updateMetricsOnFinish(TestProcedureMetrics.TestProcEnv env, long time, boolean success)
updateMetricsOnFinish
in class org.apache.hadoop.hbase.procedure2.Procedure<TestProcedureMetrics.TestProcEnv>
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.