Class RootProcedureStack<Env>
java.lang.Object
org.apache.iotdb.confignode.procedure.RootProcedureStack<Env>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidabort()protected booleanacquire()Called by theProcedureExecutorto mark the procedure step as running.protected voidaddRollbackStep(Procedure<Env> proc) Called by theProcedureExecutorafter the procedure step is completed, to add the step to the rollback list (or procedure stack).protected voidaddSubProcedure(Procedure<Env> proc) protected ProcedureExceptionprotected long[]booleanisFailed()booleanprotected voidCalled on store load by theProcedureExecutorto load part of the stack.protected voidrelease()Called by theProcedureExecutorto mark the procedure step as finished.protected booleanCalled by theProcedureExecutorto mark rollback execution.protected voidCalled by theProcedureExecutorto mark rollback execution.
-
Constructor Details
-
RootProcedureStack
public RootProcedureStack()
-
-
Method Details
-
isFailed
public boolean isFailed() -
isRollingback
public boolean isRollingback() -
setRollback
protected boolean setRollback()Called by theProcedureExecutorto mark rollback execution. -
unsetRollback
protected void unsetRollback()Called by theProcedureExecutorto mark rollback execution. -
getSubprocedureIds
protected long[] getSubprocedureIds() -
getSubproceduresStack
-
getException
-
acquire
protected boolean acquire()Called by theProcedureExecutorto mark the procedure step as running. -
release
protected void release()Called by theProcedureExecutorto mark the procedure step as finished. -
abort
protected void abort() -
addRollbackStep
Called by theProcedureExecutorafter the procedure step is completed, to add the step to the rollback list (or procedure stack). -
addSubProcedure
-
loadStack
Called on store load by theProcedureExecutorto 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.
-