类 RootProcedureStack<Env>
- java.lang.Object
-
- org.apache.iotdb.confignode.procedure.RootProcedureStack<Env>
-
public class RootProcedureStack<Env> extends java.lang.Object
-
-
构造器概要
构造器 构造器 说明 RootProcedureStack()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidabort()protected booleanacquire()Called by the ProcedureExecutor to mark the procedure step as running.protected voidaddRollbackStep(Procedure<Env> proc)Called by the ProcedureExecutor after the procedure step is completed, to add the step to the rollback list (or procedure stack)protected voidaddSubProcedure(Procedure<Env> proc)protected ProcedureExceptiongetException()protected long[]getSubprocedureIds()protected java.util.List<Procedure<Env>>getSubproceduresStack()booleanisFailed()booleanisRollingback()protected voidloadStack(Procedure<Env> proc)Called on store load by the ProcedureExecutor to load part of the stack.protected voidrelease()Called by the ProcedureExecutor to mark the procedure step as finished.protected booleansetRollback()Called by the ProcedureExecutor to mark rollback executionprotected voidunsetRollback()Called by the ProcedureExecutor to mark rollback execution
-
-
-
方法详细资料
-
isFailed
public boolean isFailed()
-
isRollingback
public boolean isRollingback()
-
setRollback
protected boolean setRollback()
Called by the ProcedureExecutor to mark rollback execution
-
unsetRollback
protected void unsetRollback()
Called by the ProcedureExecutor to mark rollback execution
-
getSubprocedureIds
protected long[] getSubprocedureIds()
-
getException
protected ProcedureException getException()
-
acquire
protected boolean acquire()
Called by the ProcedureExecutor to mark the procedure step as running.
-
release
protected void release()
Called by the ProcedureExecutor to mark the procedure step as finished.
-
abort
protected void abort()
-
addRollbackStep
protected void addRollbackStep(Procedure<Env> proc)
Called by the ProcedureExecutor after the procedure step is completed, to add the step to the rollback list (or procedure stack)
-
loadStack
protected void loadStack(Procedure<Env> proc)
Called on store load by the ProcedureExecutor to load part of the stack.Each procedure has its own stack-positions. Which means we have to write to the store only the Procedure we executed, and nothing else. on load we recreate the full stack by aggregating each procedure stack-positions.
-
-