Package org.apache.hadoop.hbase.master
Class TestMigrateNamespaceTable.SuspendProcedure
java.lang.Object
org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
org.apache.hadoop.hbase.master.TestMigrateNamespaceTable.SuspendProcedure
- All Implemented Interfaces:
Comparable<org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>>
,org.apache.hadoop.hbase.master.procedure.TableProcedureInterface
- Enclosing class:
- TestMigrateNamespaceTable
public static final class TestMigrateNamespaceTable.SuspendProcedure
extends org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
implements org.apache.hadoop.hbase.master.procedure.TableProcedureInterface
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.procedure2.Procedure
org.apache.hadoop.hbase.procedure2.Procedure.LockState
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.master.procedure.TableProcedureInterface
org.apache.hadoop.hbase.master.procedure.TableProcedureInterface.TableOperationType
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.procedure2.Procedure
NO_PROC_ID, NO_TIMEOUT
Fields inherited from interface org.apache.hadoop.hbase.master.procedure.TableProcedureInterface
DUMMY_NAMESPACE_TABLE_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
abort
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) protected org.apache.hadoop.hbase.procedure2.Procedure.LockState
acquireLock
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) protected void
deserializeStateData
(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) protected org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>[]
execute
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) org.apache.hadoop.hbase.TableName
org.apache.hadoop.hbase.master.procedure.TableProcedureInterface.TableOperationType
protected boolean
holdLock
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) protected void
releaseLock
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) protected void
rollback
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) protected void
serializeStateData
(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) protected boolean
setTimeoutFailure
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) Methods inherited from class org.apache.hadoop.hbase.procedure2.Procedure
addStackIndex, afterReplay, beforeReplay, bypass, compareTo, completionCleanup, doExecute, 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, incChildrenLatch, isBypass, isFailed, isFinished, isInitializing, isLockedWhenLoading, isRollbackSupported, isRunnable, isSuccess, isWaiting, isYieldAfterExecutionStep, removeStackIndex, setAbortFailure, setChildrenLatch, setExecuted, setFailure, setFailure, setLastUpdate, setNonceKey, setOwner, setOwner, setParentProcId, setProcId, setResult, setRootProcId, setStackIndexes, setState, setSubmittedTime, setTimeout, shouldWaitClientAck, skipPersistence, suspend, toString, toStringClass, toStringClassDetails, toStringDetails, toStringSimpleSB, toStringState, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, waitInitialized, wasExecuted
-
Constructor Details
-
SuspendProcedure
public SuspendProcedure()
-
-
Method Details
-
getTableName
- Specified by:
getTableName
in interfaceorg.apache.hadoop.hbase.master.procedure.TableProcedureInterface
-
getTableOperationType
public org.apache.hadoop.hbase.master.procedure.TableProcedureInterface.TableOperationType getTableOperationType()- Specified by:
getTableOperationType
in interfaceorg.apache.hadoop.hbase.master.procedure.TableProcedureInterface
-
acquireLock
protected org.apache.hadoop.hbase.procedure2.Procedure.LockState acquireLock(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) - Overrides:
acquireLock
in classorg.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
-
releaseLock
- Overrides:
releaseLock
in classorg.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
-
holdLock
- Overrides:
holdLock
in classorg.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
-
execute
protected org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>[] execute(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws org.apache.hadoop.hbase.procedure2.ProcedureYieldException, org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException, InterruptedException - Specified by:
execute
in classorg.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
- Throws:
org.apache.hadoop.hbase.procedure2.ProcedureYieldException
org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException
InterruptedException
-
setTimeoutFailure
protected boolean setTimeoutFailure(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) - Overrides:
setTimeoutFailure
in classorg.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
-
rollback
protected void rollback(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws IOException, InterruptedException - Specified by:
rollback
in classorg.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
- Throws:
IOException
InterruptedException
-
abort
- Specified by:
abort
in classorg.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
-
serializeStateData
protected void serializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) throws IOException - Specified by:
serializeStateData
in classorg.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
- Throws:
IOException
-
deserializeStateData
protected void deserializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) throws IOException - Specified by:
deserializeStateData
in classorg.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
- Throws:
IOException
-