@Deprecated @InterfaceAudience.Private public class AssignProcedure extends RegionTransitionProcedure
TransitRegionStateProcedure
Procedure.LockState
TableProcedureInterface.TableOperationType
Modifier and Type | Field and Description |
---|---|
private boolean |
forceNewPlan
Deprecated.
|
protected ServerName |
targetServer
Deprecated.
|
aborted
NO_PROC_ID, NO_TIMEOUT
Constructor and Description |
---|
AssignProcedure()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
deserializeStateData(ProcedureStateSerializer serializer)
Deprecated.
Called on store load to allow the user to decode the previously serialized
state.
|
protected void |
finishTransition(MasterProcedureEnv env,
RegionStateNode regionNode)
Deprecated.
|
protected ProcedureMetrics |
getProcedureMetrics(MasterProcedureEnv env)
Deprecated.
Override this method to provide procedure specific counters for submitted count, failed
count and time histogram.
|
TableProcedureInterface.TableOperationType |
getTableOperationType()
Deprecated.
Given an operation type we can take decisions about what to do with pending operations.
|
protected boolean |
isRollbackSupported(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.RegionTransitionState state)
Deprecated.
|
Optional<RemoteProcedureDispatcher.RemoteOperation> |
remoteCallBuild(MasterProcedureEnv env,
ServerName serverName)
Deprecated.
For building the remote operation.
|
protected boolean |
remoteCallFailed(MasterProcedureEnv env,
RegionStateNode regionNode,
IOException exception)
Deprecated.
|
protected void |
reportTransition(MasterProcedureEnv env,
RegionStateNode regionNode,
org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode code,
long openSeqNum)
Deprecated.
|
protected void |
serializeStateData(ProcedureStateSerializer serializer)
Deprecated.
The user-level code of the procedure may have some state to
persist (e.g.
|
protected boolean |
startTransition(MasterProcedureEnv env,
RegionStateNode regionNode)
Deprecated.
|
void |
toStringClassDetails(StringBuilder sb)
Deprecated.
Extend the toString() information with the procedure details
e.g.
|
protected boolean |
updateTransition(MasterProcedureEnv env,
RegionStateNode regionNode)
Deprecated.
|
abort, execute, getAttempt, getRegionInfo, getRegionState, getTableName, getTransitionState, isMeta, remoteCallFailed, remoteOperationCompleted, remoteOperationFailed, rollback, setAttempt, setRegionInfo, setTransitionState, toStringState
acquireLock, addStackIndex, afterReplay, beforeReplay, bypass, compareTo, completionCleanup, doExecute, doRollback, elapsedTime, getChildrenLatch, getException, getLastUpdate, getNonceKey, getOwner, getParentProcId, 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, toStringDetails, toStringSimpleSB, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, waitInitialized, wasExecuted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
storeInDispatchedQueue
private boolean forceNewPlan
protected volatile ServerName targetServer
public AssignProcedure()
public TableProcedureInterface.TableOperationType getTableOperationType()
TableProcedureInterface
protected boolean isRollbackSupported(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.RegionTransitionState state)
isRollbackSupported
in class RegionTransitionProcedure
protected void serializeStateData(ProcedureStateSerializer serializer) throws IOException
Procedure
serializeStateData
in class Procedure<MasterProcedureEnv>
serializer
- stores the serializable stateIOException
protected void deserializeStateData(ProcedureStateSerializer serializer) throws IOException
Procedure
deserializeStateData
in class Procedure<MasterProcedureEnv>
serializer
- contains the serialized stateIOException
protected boolean startTransition(MasterProcedureEnv env, RegionStateNode regionNode) throws IOException
startTransition
in class RegionTransitionProcedure
IOException
protected boolean updateTransition(MasterProcedureEnv env, RegionStateNode regionNode) throws IOException, ProcedureSuspendedException
updateTransition
in class RegionTransitionProcedure
IOException
ProcedureSuspendedException
protected void finishTransition(MasterProcedureEnv env, RegionStateNode regionNode) throws IOException
finishTransition
in class RegionTransitionProcedure
IOException
protected void reportTransition(MasterProcedureEnv env, RegionStateNode regionNode, org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode code, long openSeqNum) throws UnexpectedStateException
reportTransition
in class RegionTransitionProcedure
UnexpectedStateException
public Optional<RemoteProcedureDispatcher.RemoteOperation> remoteCallBuild(MasterProcedureEnv env, ServerName serverName)
RemoteProcedureDispatcher.RemoteProcedure
remoteCallBuild
in interface RemoteProcedureDispatcher.RemoteProcedure<MasterProcedureEnv,ServerName>
remoteCallBuild
in class RegionTransitionProcedure
protected boolean remoteCallFailed(MasterProcedureEnv env, RegionStateNode regionNode, IOException exception)
remoteCallFailed
in class RegionTransitionProcedure
public void toStringClassDetails(StringBuilder sb)
Procedure
toStringClassDetails
in class RegionTransitionProcedure
sb
- the string builder to use to append the proc specific informationprotected ProcedureMetrics getProcedureMetrics(MasterProcedureEnv env)
Procedure
getProcedureMetrics
in class Procedure<MasterProcedureEnv>
env
- The environment passed to the procedure executorCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.