Class TestProcedureBypass.StuckStateMachineProcedure
java.lang.Object
org.apache.hadoop.hbase.procedure2.Procedure<TEnvironment>
org.apache.hadoop.hbase.procedure2.StateMachineProcedure<TEnv,TState>
org.apache.hadoop.hbase.procedure2.ProcedureTestingUtility.NoopStateMachineProcedure<TestProcedureBypass.TestProcEnv,TestProcedureBypass.StuckStateMachineState>
org.apache.hadoop.hbase.procedure2.TestProcedureBypass.StuckStateMachineProcedure
- All Implemented Interfaces:
Comparable<org.apache.hadoop.hbase.procedure2.Procedure<TestProcedureBypass.TestProcEnv>>
- Enclosing class:
- TestProcedureBypass
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.procedure2.StateMachineProcedure
org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.procedure2.Procedure
org.apache.hadoop.hbase.procedure2.Procedure.LockState
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.procedure2.StateMachineProcedure
stateCount
Fields inherited from class org.apache.hadoop.hbase.procedure2.Procedure
NO_PROC_ID, NO_TIMEOUT
-
Constructor Summary
ConstructorDescriptionStuckStateMachineProcedure
(TestProcedureBypass.TestProcEnv env, TestProcedureBypass.StuckStateMachineState initialState) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow
executeFromState
(TestProcedureBypass.TestProcEnv env, TestProcedureBypass.StuckStateMachineState tState) getState
(int stateId) protected int
Methods inherited from class org.apache.hadoop.hbase.procedure2.ProcedureTestingUtility.NoopStateMachineProcedure
getInitialState, rollbackState
Methods inherited from class org.apache.hadoop.hbase.procedure2.StateMachineProcedure
abort, addChildProcedure, deserializeStateData, execute, failIfAborted, getCurrentState, getCurrentStateId, getCycles, isEofState, isRollbackSupported, isRollbackSupported, isYieldAfterExecutionStep, isYieldBeforeExecuteFromState, rollback, serializeStateData, setNextState, toStringState
Methods inherited from class org.apache.hadoop.hbase.procedure2.Procedure
acquireLock, addStackIndex, afterReplay, 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, 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, tryRunnable, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, waitInitialized, wasExecuted
-
Field Details
-
stop
-
-
Constructor Details
-
StuckStateMachineProcedure
public StuckStateMachineProcedure() -
StuckStateMachineProcedure
public StuckStateMachineProcedure(TestProcedureBypass.TestProcEnv env, TestProcedureBypass.StuckStateMachineState initialState)
-
-
Method Details
-
executeFromState
protected org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow executeFromState(TestProcedureBypass.TestProcEnv env, TestProcedureBypass.StuckStateMachineState tState) throws org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException, org.apache.hadoop.hbase.procedure2.ProcedureYieldException, InterruptedException - Overrides:
executeFromState
in classProcedureTestingUtility.NoopStateMachineProcedure<TestProcedureBypass.TestProcEnv,
TestProcedureBypass.StuckStateMachineState> - Throws:
org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException
org.apache.hadoop.hbase.procedure2.ProcedureYieldException
InterruptedException
-
getState
-
getStateId
-