@InterfaceAudience.Private public class SwitchRpcThrottleProcedure extends StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.SwitchRpcThrottleState> implements ServerProcedureInterface
StateMachineProcedure.FlowProcedure.LockStateServerProcedureInterface.ServerOperationTypestateCountNO_PROC_ID, NO_TIMEOUT| Constructor and Description |
|---|
SwitchRpcThrottleProcedure() |
SwitchRpcThrottleProcedure(RpcThrottleStorage rpcThrottleStorage,
boolean rpcThrottleEnabled,
ServerName serverName,
ProcedurePrepareLatch syncLatch) |
abort, addChildProcedure, execute, failIfAborted, getCurrentStateId, getCycles, isEofState, isRollbackSupported, isYieldAfterExecutionStep, isYieldBeforeExecuteFromState, rollback, setNextState, toStringStateacquireLock, 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, 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, wasExecutedpublic SwitchRpcThrottleProcedure()
public SwitchRpcThrottleProcedure(RpcThrottleStorage rpcThrottleStorage, boolean rpcThrottleEnabled, ServerName serverName, ProcedurePrepareLatch syncLatch)
protected StateMachineProcedure.Flow executeFromState(MasterProcedureEnv env, MasterProcedureProtos.SwitchRpcThrottleState state) throws ProcedureSuspendedException, ProcedureYieldException, InterruptedException
protected void rollbackState(MasterProcedureEnv env, MasterProcedureProtos.SwitchRpcThrottleState state) throws IOException, InterruptedException
rollbackState in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.SwitchRpcThrottleState>IOExceptionInterruptedExceptionprotected MasterProcedureProtos.SwitchRpcThrottleState getState(int stateId)
getState in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.SwitchRpcThrottleState>protected int getStateId(MasterProcedureProtos.SwitchRpcThrottleState throttleState)
getStateId in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.SwitchRpcThrottleState>protected MasterProcedureProtos.SwitchRpcThrottleState getInitialState()
getInitialState in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.SwitchRpcThrottleState>protected MasterProcedureProtos.SwitchRpcThrottleState getCurrentState()
protected void serializeStateData(ProcedureStateSerializer serializer) throws IOException
serializeStateData in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.SwitchRpcThrottleState>IOExceptionprotected void deserializeStateData(ProcedureStateSerializer serializer) throws IOException
deserializeStateData in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.SwitchRpcThrottleState>IOExceptionpublic ServerName getServerName()
getServerName in interface ServerProcedureInterfacepublic boolean hasMetaTableRegion()
hasMetaTableRegion in interface ServerProcedureInterfacepublic ServerProcedureInterface.ServerOperationType getServerOperationType()
ServerProcedureInterfacegetServerOperationType in interface ServerProcedureInterfacepublic void switchThrottleState(MasterProcedureEnv env, boolean rpcThrottleEnabled) throws IOException
IOExceptionpublic void toStringClassDetails(StringBuilder sb)
toStringClassDetails in class Procedure<MasterProcedureEnv>Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.