@InterfaceAudience.Private public class CloseRegionProcedure extends RegionRemoteProcedureBase
Procedure.LockState
TableProcedureInterface.TableOperationType
Modifier and Type | Field and Description |
---|---|
private ServerName |
assignCandidate |
region, targetServer
NO_PROC_ID, NO_TIMEOUT
Constructor and Description |
---|
CloseRegionProcedure() |
CloseRegionProcedure(TransitRegionStateProcedure parent,
RegionInfo region,
ServerName targetServer,
ServerName assignCandidate) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkTransition(RegionStateNode regionNode,
org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode transitionCode,
long seqId) |
protected void |
deserializeStateData(ProcedureStateSerializer serializer)
Called on store load to allow the user to decode the previously serialized
state.
|
protected ProcedureMetrics |
getProcedureMetrics(MasterProcedureEnv env)
Override this method to provide procedure specific counters for submitted count, failed
count and time histogram.
|
TableProcedureInterface.TableOperationType |
getTableOperationType()
Given an operation type we can take decisions about what to do with pending operations.
|
RemoteProcedureDispatcher.RemoteOperation |
newRemoteOperation() |
protected void |
restoreSucceedState(AssignmentManager am,
RegionStateNode regionNode,
long seqId) |
protected void |
serializeStateData(ProcedureStateSerializer serializer)
The user-level code of the procedure may have some state to
persist (e.g.
|
protected void |
updateTransitionWithoutPersistingToMeta(MasterProcedureEnv env,
RegionStateNode regionNode,
org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode transitionCode,
long seqId) |
abort, afterReplay, execute, getTableName, remoteCallBuild, remoteCallFailed, remoteOperationCompleted, remoteOperationFailed, reportTransition, rollback, serverCrashed, setTimeoutFailure, stateLoaded, storeInDispatchedQueue, waitInitialized
acquireLock, addStackIndex, 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, shouldWaitClientAck, skipPersistence, toString, toStringClass, toStringClassDetails, toStringDetails, toStringSimpleSB, toStringState, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, wasExecuted
private ServerName assignCandidate
public CloseRegionProcedure()
public CloseRegionProcedure(TransitRegionStateProcedure parent, RegionInfo region, ServerName targetServer, ServerName assignCandidate)
public TableProcedureInterface.TableOperationType getTableOperationType()
TableProcedureInterface
public RemoteProcedureDispatcher.RemoteOperation newRemoteOperation()
newRemoteOperation
in class RegionRemoteProcedureBase
protected void serializeStateData(ProcedureStateSerializer serializer) throws IOException
Procedure
serializeStateData
in class RegionRemoteProcedureBase
serializer
- stores the serializable stateIOException
protected void deserializeStateData(ProcedureStateSerializer serializer) throws IOException
Procedure
deserializeStateData
in class RegionRemoteProcedureBase
serializer
- contains the serialized stateIOException
protected ProcedureMetrics getProcedureMetrics(MasterProcedureEnv env)
Procedure
getProcedureMetrics
in class Procedure<MasterProcedureEnv>
env
- The environment passed to the procedure executorprotected void checkTransition(RegionStateNode regionNode, org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode transitionCode, long seqId) throws UnexpectedStateException
checkTransition
in class RegionRemoteProcedureBase
UnexpectedStateException
protected void updateTransitionWithoutPersistingToMeta(MasterProcedureEnv env, RegionStateNode regionNode, org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode transitionCode, long seqId) throws IOException
updateTransitionWithoutPersistingToMeta
in class RegionRemoteProcedureBase
IOException
protected void restoreSucceedState(AssignmentManager am, RegionStateNode regionNode, long seqId) throws IOException
restoreSucceedState
in class RegionRemoteProcedureBase
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.