类 RootProcedureStack<Env>


  • public class RootProcedureStack<Env>
    extends java.lang.Object
    • 构造器详细资料

      • RootProcedureStack

        public RootProcedureStack()
    • 方法详细资料

      • 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()
      • getSubproceduresStack

        protected java.util.List<Procedure<Env>> getSubproceduresStack()
      • 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)
      • addSubProcedure

        protected void addSubProcedure​(Procedure<Env> proc)
      • 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.