public static final class TestGetProcedureResult.DummyProcedure extends org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> implements org.apache.hadoop.hbase.master.procedure.TableProcedureInterface
Modifier and Type | Field and Description |
---|---|
private CountDownLatch |
canRollback |
private CountDownLatch |
failureSet |
Constructor and Description |
---|
DummyProcedure() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
abort(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 |
getTableName() |
org.apache.hadoop.hbase.master.procedure.TableProcedureInterface.TableOperationType |
getTableOperationType() |
protected void |
rollback(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) |
protected void |
serializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) |
acquireLock, 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, holdLock, incChildrenLatch, isBypass, isFailed, isFinished, isInitializing, isLockedWhenLoading, isRunnable, isSuccess, isWaiting, isYieldAfterExecutionStep, releaseLock, removeStackIndex, setAbortFailure, setChildrenLatch, setFailure, setFailure, setLastUpdate, setNonceKey, setOwner, setOwner, setParentProcId, setProcId, setResult, setRootProcId, setStackIndexes, setState, setSubmittedTime, setTimeout, setTimeoutFailure, shouldWaitClientAck, skipPersistence, toString, toStringClass, toStringClassDetails, toStringDetails, toStringSimpleSB, toStringState, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, waitInitialized, wasExecuted
private final CountDownLatch failureSet
private final CountDownLatch canRollback
public DummyProcedure()
public org.apache.hadoop.hbase.TableName getTableName()
getTableName
in interface org.apache.hadoop.hbase.master.procedure.TableProcedureInterface
public org.apache.hadoop.hbase.master.procedure.TableProcedureInterface.TableOperationType getTableOperationType()
getTableOperationType
in interface org.apache.hadoop.hbase.master.procedure.TableProcedureInterface
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
execute
in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
org.apache.hadoop.hbase.procedure2.ProcedureYieldException
org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException
InterruptedException
protected void rollback(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws IOException, InterruptedException
rollback
in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
IOException
InterruptedException
protected boolean abort(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
abort
in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
protected void serializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) throws IOException
serializeStateData
in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
IOException
protected void deserializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) throws IOException
deserializeStateData
in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.