Class ProcedureTestingUtility.TestProcedure
java.lang.Object
org.apache.hadoop.hbase.procedure2.Procedure<TEnv>
org.apache.hadoop.hbase.procedure2.ProcedureTestingUtility.NoopProcedure<Void>
org.apache.hadoop.hbase.procedure2.ProcedureTestingUtility.TestProcedure
- All Implemented Interfaces:
Comparable<org.apache.hadoop.hbase.procedure2.Procedure<Void>>
- Direct Known Subclasses:
TestMasterProcedureScheduler.TestGlobalProcedure
,TestMasterProcedureScheduler.TestNamespaceProcedure
,TestMasterProcedureScheduler.TestPeerProcedure
,TestMasterProcedureScheduler.TestTableProcedure
,TestProcedureUtil.TestProcedureNoDefaultConstructor
- Enclosing class:
- ProcedureTestingUtility
public static class ProcedureTestingUtility.TestProcedure
extends ProcedureTestingUtility.NoopProcedure<Void>
-
Nested Class Summary
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.Procedure
NO_PROC_ID, NO_TIMEOUT
-
Constructor Summary
ConstructorDescriptionTestProcedure
(long procId) TestProcedure
(long procId, long parentId) TestProcedure
(long procId, long parentId, byte[] data) TestProcedure
(long procId, long parentId, long rootId, byte[] data) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.procedure2.Procedure.LockState
acquireLock
(Void env) void
addStackId
(int index) protected void
deserializeStateData
(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) void
releaseLock
(Void env) protected void
serializeStateData
(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) void
setData
(byte[] data) void
Methods inherited from class org.apache.hadoop.hbase.procedure2.ProcedureTestingUtility.NoopProcedure
abort, execute, rollback
Methods inherited from class org.apache.hadoop.hbase.procedure2.Procedure
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, isRollbackSupported, isRunnable, isSuccess, isWaiting, isYieldAfterExecutionStep, lockedWhenLoading, needPersistence, 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, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, waitInitialized, wasExecuted
-
Field Details
-
data
-
-
Constructor Details
-
TestProcedure
public TestProcedure() -
TestProcedure
-
TestProcedure
-
TestProcedure
-
TestProcedure
-
-
Method Details
-
addStackId
-
setSuccessState
-
setData
-
serializeStateData
protected void serializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) throws IOException - Overrides:
serializeStateData
in classProcedureTestingUtility.NoopProcedure<Void>
- Throws:
IOException
-
deserializeStateData
protected void deserializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) throws IOException - Overrides:
deserializeStateData
in classProcedureTestingUtility.NoopProcedure<Void>
- Throws:
IOException
-
acquireLock
- Overrides:
acquireLock
in classorg.apache.hadoop.hbase.procedure2.Procedure<Void>
-
releaseLock
- Overrides:
releaseLock
in classorg.apache.hadoop.hbase.procedure2.Procedure<Void>
-