Class DropPipeProcedure
java.lang.Object
org.apache.iotdb.confignode.procedure.Procedure<Env>
org.apache.iotdb.confignode.procedure.impl.StateMachineProcedure<ConfigNodeProcedureEnv,OperatePipeState>
org.apache.iotdb.confignode.procedure.impl.sync.DropPipeProcedure
- All Implemented Interfaces:
Comparable<Procedure<ConfigNodeProcedureEnv>>
@Deprecated
public class DropPipeProcedure
extends StateMachineProcedure<ConfigNodeProcedureEnv,OperatePipeState>
Deprecated.
Empty procedure for old sync, restored only for compatibility.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.iotdb.confignode.procedure.impl.StateMachineProcedure
StateMachineProcedure.Flow -
Field Summary
Fields inherited from class org.apache.iotdb.confignode.procedure.impl.StateMachineProcedure
isGeneratedByPipeFields inherited from class org.apache.iotdb.confignode.procedure.Procedure
NO_PROC_ID, NO_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(ByteBuffer byteBuffer) Deprecated.booleanDeprecated.protected StateMachineProcedure.FlowexecuteFromState(ConfigNodeProcedureEnv env, OperatePipeState state) Deprecated.Called to perform a single step of the specified 'state' of the procedure.protected OperatePipeStateDeprecated.Return the initial state object that will be used for the first call to executeFromState().protected OperatePipeStategetState(int stateId) Deprecated.Convert an ordinal (or state id) to an Enum (or more descriptive) state object.protected intgetStateId(OperatePipeState state) Deprecated.Convert the Enum (or more descriptive) state object to an ordinal (or state id).inthashCode()Deprecated.protected voidrollbackState(ConfigNodeProcedureEnv configNodeProcedureEnv, OperatePipeState operatePipeState) Deprecated.Called to perform the rollback of the specified state.voidserialize(DataOutputStream stream) Deprecated.Methods inherited from class org.apache.iotdb.confignode.procedure.impl.StateMachineProcedure
addChildProcedure, execute, getCurrentState, getCycles, isEofState, isRollbackSupported, isStateDeserialized, rollback, setNextState, toStringStateMethods inherited from class org.apache.iotdb.confignode.procedure.Procedure
acquireLock, addStackIndex, compareTo, deserializeTypeInfoForCompatibility, doAcquireLock, doExecute, doReleaseLock, doRollback, elapsedTime, getChildrenLatch, getException, getLastUpdate, getParentProcId, getProcId, getProcType, getResult, getRootProcId, getStackIndexes, getState, getSubmittedTime, getTimeout, getTimeoutTimestamp, hasChildren, hasException, hasLock, hasParent, hasTimeout, haveSameParent, holdLock, incChildrenLatch, isFailed, isFinished, isInitializing, isLockedWhenLoading, isRunnable, isSuccess, isWaiting, isYieldAfterExecution, releaseLock, removeStackIndex, restoreLock, setChildrenLatch, setFailure, setFailure, setLastUpdate, setParentProcId, setProcId, setProcRunnable, setResult, setRootProcedureId, setRootProcId, setStackIndexes, setState, setSubmittedTime, setTimeout, setTimeoutFailure, toString, toStringClassDetails, toStringDetails, toStringSimpleSB, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, wasExecuted
-
Constructor Details
-
DropPipeProcedure
public DropPipeProcedure()Deprecated.
-
-
Method Details
-
serialize
Deprecated.- Overrides:
serializein classStateMachineProcedure<ConfigNodeProcedureEnv,OperatePipeState> - Throws:
IOException
-
deserialize
Deprecated.- Overrides:
deserializein classStateMachineProcedure<ConfigNodeProcedureEnv,OperatePipeState>
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
executeFromState
protected StateMachineProcedure.Flow executeFromState(ConfigNodeProcedureEnv env, OperatePipeState state) throws InterruptedException Deprecated.Description copied from class:StateMachineProcedureCalled to perform a single step of the specified 'state' of the procedure.- Specified by:
executeFromStatein classStateMachineProcedure<ConfigNodeProcedureEnv,OperatePipeState> state- state to execute- Returns:
- Flow.NO_MORE_STATE if the procedure is completed, Flow.HAS_MORE_STATE if there is another step.
- Throws:
InterruptedException
-
getState
Deprecated.Description copied from class:StateMachineProcedureConvert an ordinal (or state id) to an Enum (or more descriptive) state object.- Specified by:
getStatein classStateMachineProcedure<ConfigNodeProcedureEnv,OperatePipeState> - Parameters:
stateId- the ordinal() of the state enum (or state id)- Returns:
- the state enum object
-
getStateId
Deprecated.Description copied from class:StateMachineProcedureConvert the Enum (or more descriptive) state object to an ordinal (or state id).- Specified by:
getStateIdin classStateMachineProcedure<ConfigNodeProcedureEnv,OperatePipeState> - Parameters:
state- the state enum object- Returns:
- stateId the ordinal() of the state enum (or state id)
-
getInitialState
Deprecated.Description copied from class:StateMachineProcedureReturn the initial state object that will be used for the first call to executeFromState().- Specified by:
getInitialStatein classStateMachineProcedure<ConfigNodeProcedureEnv,OperatePipeState> - Returns:
- the initial state enum object
-
rollbackState
protected void rollbackState(ConfigNodeProcedureEnv configNodeProcedureEnv, OperatePipeState operatePipeState) throws IOException, InterruptedException, ProcedureException Deprecated.Description copied from class:StateMachineProcedureCalled to perform the rollback of the specified state.- Specified by:
rollbackStatein classStateMachineProcedure<ConfigNodeProcedureEnv,OperatePipeState> operatePipeState- state to rollback- Throws:
IOException- temporary failure, the rollback will retry laterInterruptedExceptionProcedureException
-
DropPipeProcedureV2instead.