public static class TestProcedureEvents.TestTimeoutEventProcedure extends ProcedureTestingUtility.NoopProcedure<TestProcedureEvents.TestProcEnv>
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.procedure2.ProcedureEvent |
event |
private int |
maxTimeouts |
private AtomicInteger |
ntimeouts |
Constructor and Description |
---|
TestTimeoutEventProcedure() |
TestTimeoutEventProcedure(int timeoutMsec,
int maxTimeouts) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterReplay(TestProcedureEvents.TestProcEnv env) |
protected void |
deserializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) |
protected org.apache.hadoop.hbase.procedure2.Procedure[] |
execute(TestProcedureEvents.TestProcEnv env) |
int |
getTimeoutsCount() |
protected void |
serializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) |
protected boolean |
setTimeoutFailure(TestProcedureEvents.TestProcEnv env) |
abort, rollback
acquireLock, addStackIndex, beforeReplay, bypass, compareTo, completionCleanup, doAcquireLock, doExecute, doReleaseLock, doRollback, 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, shouldWaitClientAck, skipPersistence, toString, toStringClass, toStringClassDetails, toStringDetails, toStringSimpleSB, toStringState, tryRunnable, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, waitInitialized, wasExecuted
private final org.apache.hadoop.hbase.procedure2.ProcedureEvent event
private final AtomicInteger ntimeouts
private int maxTimeouts
public TestTimeoutEventProcedure()
public TestTimeoutEventProcedure(int timeoutMsec, int maxTimeouts)
public int getTimeoutsCount()
protected org.apache.hadoop.hbase.procedure2.Procedure[] execute(TestProcedureEvents.TestProcEnv env) throws org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException
execute
in class ProcedureTestingUtility.NoopProcedure<TestProcedureEvents.TestProcEnv>
org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException
protected boolean setTimeoutFailure(TestProcedureEvents.TestProcEnv env)
setTimeoutFailure
in class org.apache.hadoop.hbase.procedure2.Procedure<TestProcedureEvents.TestProcEnv>
protected void afterReplay(TestProcedureEvents.TestProcEnv env)
afterReplay
in class org.apache.hadoop.hbase.procedure2.Procedure<TestProcedureEvents.TestProcEnv>
protected void serializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) throws IOException
serializeStateData
in class ProcedureTestingUtility.NoopProcedure<TestProcedureEvents.TestProcEnv>
IOException
protected void deserializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) throws IOException
deserializeStateData
in class ProcedureTestingUtility.NoopProcedure<TestProcedureEvents.TestProcEnv>
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.