Class Executor

  • All Implemented Interfaces:
    IExecutor

    public class Executor
    extends java.lang.Object
    implements IExecutor
    Default IExecutor implementation, that fires a provided set of activations. The activations are accessed via an Iterator
    • Constructor Summary

      Constructors 
      Constructor Description
      Executor()
      Creates an executor with a new Context.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void endExecution​(java.lang.String transactionID)
      Signals the end of the execution,It receives the transaction ID as a parameter
      void execute​(java.util.Iterator<Activation<?>> activations)
      executes a given set of EVM Activation.
      Context getContext()
      Returns the Context of the executor.
      void startExecution​(java.lang.String transactionID)
      Signals the beginning of the execution,It receives the transaction ID as a parameter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Executor

        public Executor()
        Creates an executor with a new Context. Executors are usually created as part of an ExecutionSchema through the EventDrivenVM.createExecutionSchema methods.
    • Method Detail

      • getContext

        public Context getContext()
        Description copied from interface: IExecutor
        Returns the Context of the executor. The return value should never be null.
        Specified by:
        getContext in interface IExecutor
      • startExecution

        public void startExecution​(java.lang.String transactionID)
        Description copied from interface: IExecutor
        Signals the beginning of the execution,It receives the transaction ID as a parameter
        Specified by:
        startExecution in interface IExecutor
      • endExecution

        public void endExecution​(java.lang.String transactionID)
        Description copied from interface: IExecutor
        Signals the end of the execution,It receives the transaction ID as a parameter
        Specified by:
        endExecution in interface IExecutor