@InterfaceAudience.Private public class EnableTableProcedure extends StateMachineProcedure<MasterProcedureEnv,org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.EnableTableState> implements TableProcedureInterface
StateMachineProcedure.FlowTableProcedureInterface.TableOperationType| 构造器和说明 |
|---|
EnableTableProcedure() |
EnableTableProcedure(MasterProcedureEnv env,
TableName tableName,
boolean skipTableStateCheck)
Constructor
|
EnableTableProcedure(MasterProcedureEnv env,
TableName tableName,
boolean skipTableStateCheck,
ProcedurePrepareLatch syncLatch)
Constructor
|
addChildProcedure, execute, isYieldAfterExecutionStep, isYieldBeforeExecuteFromState, rollback, toStringStateaddStackIndex, beforeReplay, childrenCountDown, compareTo, completionCleanup, convert, convert, createProcedureInfo, doExecute, doRollback, elapsedTime, getException, getLastUpdate, getNonceKey, getOwner, getParentProcId, getProcId, getProcIdHashCode, getResult, getRootProcedureId, getStackIndexes, getStartTime, getState, getTimeout, getTimeRemaining, hasChildren, hasException, hasOwner, hasParent, hasTimeout, incChildrenLatch, isFailed, isFinished, isRunnable, isSuccess, isWaiting, newInstance, removeStackIndex, setAbortFailure, setChildrenLatch, setFailure, setFailure, setNonceKey, setOwner, setParentProcId, setProcId, setResult, setStackIndexes, setStartTime, setState, setTimeout, setTimeoutFailure, shouldWaitClientAck, toString, toStringClass, toStringDetails, toStringSimpleSB, updateTimestamp, validateClass, wasExecutedpublic EnableTableProcedure()
public EnableTableProcedure(MasterProcedureEnv env, TableName tableName, boolean skipTableStateCheck)
env - MasterProcedureEnvtableName - the table to operate onskipTableStateCheck - whether to check table statepublic EnableTableProcedure(MasterProcedureEnv env, TableName tableName, boolean skipTableStateCheck, ProcedurePrepareLatch syncLatch)
env - MasterProcedureEnvtableName - the table to operate onskipTableStateCheck - whether to check table stateprotected StateMachineProcedure.Flow executeFromState(MasterProcedureEnv env, org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.EnableTableState state) throws InterruptedException
protected void rollbackState(MasterProcedureEnv env, org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.EnableTableState state) throws IOException
protected org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.EnableTableState getState(int stateId)
protected int getStateId(org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.EnableTableState state)
protected org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.EnableTableState getInitialState()
protected void setNextState(org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.EnableTableState state)
public boolean abort(MasterProcedureEnv env)
abort 在类中 Procedure<MasterProcedureEnv>protected boolean acquireLock(MasterProcedureEnv env)
acquireLock 在类中 Procedure<MasterProcedureEnv>protected void releaseLock(MasterProcedureEnv env)
releaseLock 在类中 Procedure<MasterProcedureEnv>public void serializeStateData(OutputStream stream) throws IOException
public void deserializeStateData(InputStream stream) throws IOException
public void toStringClassDetails(StringBuilder sb)
public TableName getTableName()
getTableName 在接口中 TableProcedureInterfacepublic TableProcedureInterface.TableOperationType getTableOperationType()
TableProcedureInterfacegetTableOperationType 在接口中 TableProcedureInterfaceprotected static void setTableStateToEnabling(MasterProcedureEnv env, TableName tableName) throws HBaseException, IOException
env - MasterProcedureEnvtableName - the target tableIOExceptionHBaseExceptionprotected static void markRegionsOnline(MasterProcedureEnv env, TableName tableName, Boolean retryRequired) throws IOException
env - MasterProcedureEnvtableName - the target tableretryRequired - whether to retry if the first run failedIOExceptionprotected static void setTableStateToEnabled(MasterProcedureEnv env, TableName tableName) throws HBaseException, IOException
env - MasterProcedureEnvIOExceptionHBaseExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.