@InterfaceAudience.Private public class RestoreSnapshotProcedure extends AbstractStateMachineTableProcedure<MasterProcedureProtos.RestoreSnapshotState>
StateMachineProcedure.FlowProcedure.LockStateTableProcedureInterface.TableOperationTypestateCountNO_PROC_ID, NO_TIMEOUT| Constructor and Description |
|---|
RestoreSnapshotProcedure()
Constructor (for failover)
|
RestoreSnapshotProcedure(MasterProcedureEnv env,
TableDescriptor tableDescriptor,
SnapshotProtos.SnapshotDescription snapshot) |
RestoreSnapshotProcedure(MasterProcedureEnv env,
TableDescriptor tableDescriptor,
SnapshotProtos.SnapshotDescription snapshot,
boolean restoreAcl)
Constructor
|
acquireLock, checkOnline, checkTableModifiable, getUser, getWALRegionDir, preflightChecks, releaseLock, releaseSyncLatch, setUser, waitInitializedaddChildProcedure, execute, failIfAborted, getCurrentState, getCurrentStateId, getCycles, isEofState, isYieldAfterExecutionStep, isYieldBeforeExecuteFromState, rollback, setNextState, toStringStateaddStackIndex, 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, 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, wasExecutedpublic RestoreSnapshotProcedure()
public RestoreSnapshotProcedure(MasterProcedureEnv env, TableDescriptor tableDescriptor, SnapshotProtos.SnapshotDescription snapshot) throws HBaseIOException
HBaseIOExceptionpublic RestoreSnapshotProcedure(MasterProcedureEnv env, TableDescriptor tableDescriptor, SnapshotProtos.SnapshotDescription snapshot, boolean restoreAcl) throws HBaseIOException
env - MasterProcedureEnvtableDescriptor - the table to operate onsnapshot - snapshot to restore fromIOExceptionHBaseIOExceptionprotected StateMachineProcedure.Flow executeFromState(MasterProcedureEnv env, MasterProcedureProtos.RestoreSnapshotState state) throws InterruptedException
executeFromState in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.RestoreSnapshotState>InterruptedExceptionprotected void rollbackState(MasterProcedureEnv env, MasterProcedureProtos.RestoreSnapshotState state) throws IOException
rollbackState in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.RestoreSnapshotState>IOExceptionprotected boolean isRollbackSupported(MasterProcedureProtos.RestoreSnapshotState state)
protected MasterProcedureProtos.RestoreSnapshotState getState(int stateId)
getState in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.RestoreSnapshotState>protected int getStateId(MasterProcedureProtos.RestoreSnapshotState state)
getStateId in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.RestoreSnapshotState>protected MasterProcedureProtos.RestoreSnapshotState getInitialState()
getInitialState in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.RestoreSnapshotState>public TableName getTableName()
getTableName in interface TableProcedureInterfacegetTableName in class AbstractStateMachineTableProcedure<MasterProcedureProtos.RestoreSnapshotState>public TableProcedureInterface.TableOperationType getTableOperationType()
TableProcedureInterfacegetTableOperationType in interface TableProcedureInterfacegetTableOperationType in class AbstractStateMachineTableProcedure<MasterProcedureProtos.RestoreSnapshotState>public boolean abort(MasterProcedureEnv env)
abort in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.RestoreSnapshotState>public void toStringClassDetails(StringBuilder sb)
protected void serializeStateData(ProcedureStateSerializer serializer) throws IOException
serializeStateData in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.RestoreSnapshotState>IOExceptionprotected void deserializeStateData(ProcedureStateSerializer serializer) throws IOException
deserializeStateData in class StateMachineProcedure<MasterProcedureEnv,MasterProcedureProtos.RestoreSnapshotState>IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.