public class DummyRegionProcedure extends org.apache.hadoop.hbase.master.procedure.AbstractStateMachineRegionProcedure<DummyRegionProcedureState>
org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow
Modifier and Type | Field and Description |
---|---|
private CountDownLatch |
arrive |
private CountDownLatch |
resume |
Constructor and Description |
---|
DummyRegionProcedure() |
DummyRegionProcedure(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env,
org.apache.hadoop.hbase.client.RegionInfo hri) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow |
executeFromState(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env,
DummyRegionProcedureState state) |
protected DummyRegionProcedureState |
getInitialState() |
protected DummyRegionProcedureState |
getState(int stateId) |
protected int |
getStateId(DummyRegionProcedureState state) |
org.apache.hadoop.hbase.master.procedure.TableProcedureInterface.TableOperationType |
getTableOperationType() |
void |
resume() |
protected void |
rollbackState(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env,
DummyRegionProcedureState state) |
void |
waitUntilArrive() |
acquireLock, deserializeStateData, getRegion, getTableName, holdLock, releaseLock, serializeStateData, setFailure, setRegion, toStringClassDetails
checkOnline, checkTableModifiable, getUser, getWALRegionDir, isTableEnabled, preflightChecks, releaseSyncLatch, setUser, waitInitialized
abort, addChildProcedure, execute, failIfAborted, getCurrentState, getCurrentStateId, getCycles, isEofState, isRollbackSupported, isYieldAfterExecutionStep, isYieldBeforeExecuteFromState, rollback, setNextState, toStringState
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, isRunnable, isSuccess, isWaiting, removeStackIndex, setAbortFailure, setChildrenLatch, setFailure, setFailure, setLastUpdate, setNonceKey, setOwner, setOwner, setParentProcId, setProcId, setResult, setRootProcId, setStackIndexes, setState, setSubmittedTime, setTimeout, setTimeoutFailure, shouldWaitClientAck, skipPersistence, toString, toStringClass, toStringDetails, toStringSimpleSB, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, wasExecuted
private final CountDownLatch arrive
private final CountDownLatch resume
public DummyRegionProcedure()
public DummyRegionProcedure(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.client.RegionInfo hri)
public org.apache.hadoop.hbase.master.procedure.TableProcedureInterface.TableOperationType getTableOperationType()
getTableOperationType
in interface org.apache.hadoop.hbase.master.procedure.TableProcedureInterface
getTableOperationType
in class org.apache.hadoop.hbase.master.procedure.AbstractStateMachineRegionProcedure<DummyRegionProcedureState>
protected org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow executeFromState(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, DummyRegionProcedureState state) throws org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException, org.apache.hadoop.hbase.procedure2.ProcedureYieldException, InterruptedException
executeFromState
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,DummyRegionProcedureState>
org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException
org.apache.hadoop.hbase.procedure2.ProcedureYieldException
InterruptedException
protected void rollbackState(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, DummyRegionProcedureState state) throws IOException, InterruptedException
rollbackState
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,DummyRegionProcedureState>
IOException
InterruptedException
protected DummyRegionProcedureState getState(int stateId)
getState
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,DummyRegionProcedureState>
protected int getStateId(DummyRegionProcedureState state)
getStateId
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,DummyRegionProcedureState>
protected DummyRegionProcedureState getInitialState()
getInitialState
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,DummyRegionProcedureState>
public void waitUntilArrive() throws InterruptedException
InterruptedException
public void resume()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.