Class TestStateMachineProcedure.TestSMProcedureBadRollback
java.lang.Object
org.apache.hadoop.hbase.procedure2.Procedure<TEnvironment>
org.apache.hadoop.hbase.procedure2.StateMachineProcedure<TestStateMachineProcedure.TestProcEnv,TestStateMachineProcedure.TestSMProcedureState>
org.apache.hadoop.hbase.procedure2.TestStateMachineProcedure.TestSMProcedureBadRollback
- All Implemented Interfaces:
Comparable<org.apache.hadoop.hbase.procedure2.Procedure<TestStateMachineProcedure.TestProcEnv>>
- Enclosing class:
- TestStateMachineProcedure
public static class TestStateMachineProcedure.TestSMProcedureBadRollback
extends org.apache.hadoop.hbase.procedure2.StateMachineProcedure<TestStateMachineProcedure.TestProcEnv,TestStateMachineProcedure.TestSMProcedureState>
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow
executeFromState
(TestStateMachineProcedure.TestProcEnv env, TestStateMachineProcedure.TestSMProcedureState state) getState
(int stateId) protected int
protected boolean
protected void
protected void
rollbackState
(TestStateMachineProcedure.TestProcEnv env, TestStateMachineProcedure.TestSMProcedureState state) Methods inherited from class org.apache.hadoop.hbase.procedure2.StateMachineProcedure
abort, addChildProcedure, deserializeStateData, execute, failIfAborted, getCurrentState, getCurrentStateId, getCycles, isEofState, isRollbackSupported, isYieldAfterExecutionStep, isYieldBeforeExecuteFromState, 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
-
Constructor Details
-
TestSMProcedureBadRollback
public TestSMProcedureBadRollback()
-
-
Method Details
-
executeFromState
protected org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow executeFromState(TestStateMachineProcedure.TestProcEnv env, TestStateMachineProcedure.TestSMProcedureState state) - Specified by:
executeFromState
in classorg.apache.hadoop.hbase.procedure2.StateMachineProcedure<TestStateMachineProcedure.TestProcEnv,
TestStateMachineProcedure.TestSMProcedureState>
-
isRollbackSupported
- Overrides:
isRollbackSupported
in classorg.apache.hadoop.hbase.procedure2.StateMachineProcedure<TestStateMachineProcedure.TestProcEnv,
TestStateMachineProcedure.TestSMProcedureState>
-
rollbackState
protected void rollbackState(TestStateMachineProcedure.TestProcEnv env, TestStateMachineProcedure.TestSMProcedureState state) - Specified by:
rollbackState
in classorg.apache.hadoop.hbase.procedure2.StateMachineProcedure<TestStateMachineProcedure.TestProcEnv,
TestStateMachineProcedure.TestSMProcedureState>
-
getState
- Specified by:
getState
in classorg.apache.hadoop.hbase.procedure2.StateMachineProcedure<TestStateMachineProcedure.TestProcEnv,
TestStateMachineProcedure.TestSMProcedureState>
-
getStateId
- Specified by:
getStateId
in classorg.apache.hadoop.hbase.procedure2.StateMachineProcedure<TestStateMachineProcedure.TestProcEnv,
TestStateMachineProcedure.TestSMProcedureState>
-
getInitialState
- Specified by:
getInitialState
in classorg.apache.hadoop.hbase.procedure2.StateMachineProcedure<TestStateMachineProcedure.TestProcEnv,
TestStateMachineProcedure.TestSMProcedureState>
-
rollback
protected void rollback(TestStateMachineProcedure.TestProcEnv env) throws IOException, InterruptedException - Overrides:
rollback
in classorg.apache.hadoop.hbase.procedure2.StateMachineProcedure<TestStateMachineProcedure.TestProcEnv,
TestStateMachineProcedure.TestSMProcedureState> - Throws:
IOException
InterruptedException
-