Class/Object

com.ing.baker.runtime.core

Baker

Related Docs: object Baker | package core

Permalink

class Baker extends AnyRef

The Baker knows: - A recipe - The interaction implementations for the interactions of the compiledRecipe (what concrete implementation for what interface): Map[Interface, Implementation] - A list of events The Baker can bake a recipe, create a process and respond to events.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Baker
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Baker(compiledRecipe: CompiledRecipe, implementations: Seq[AnyRef])(implicit actorSystem: ActorSystem)

    Permalink
  2. new Baker(compiledRecipe: CompiledRecipe, implementations: Map[String, () ⇒ AnyRef])(implicit actorSystem: ActorSystem)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit val actorSystem: ActorSystem

    Permalink
  5. val allImplementations: Map[String, () ⇒ AnyRef]

    Permalink
  6. def allProcessMetadata: Set[ProcessMetadata]

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def bake(processId: UUID): ProcessState

    Permalink

    Creates an instance of the process using the recipe.

    Creates an instance of the process using the recipe.

    processId

    A unique process id.

  9. def bakeAsync(processId: UUID): Future[ProcessState]

    Permalink

    Asynchronously creates an instance of the process using the recipe.

    Asynchronously creates an instance of the process using the recipe.

    processId

    A unique process id.

    returns

    A future of the initial process state.

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val compiledRecipe: CompiledRecipe

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def events(processId: UUID)(implicit timeout: FiniteDuration): Seq[RuntimeEvent]

    Permalink

    Synchronously returns all events that occurred for a process.

  15. def eventsAsync(processId: UUID): Source[RuntimeEvent, NotUsed]

    Permalink

    Returns a Source of baker events for a process.

    Returns a Source of baker events for a process.

    processId

    The process identifier.

    returns

    The source of events.

  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getIngredients(processId: UUID)(implicit timeout: FiniteDuration): Map[String, Any]

    Permalink

    Get all state that is or was available in the Petri Net marking.

    Get all state that is or was available in the Petri Net marking.

    processId

    The process id of the active process for which the accumulated state needs to be retrieved.

    returns

    Accumulated state.

  19. def getProcessState(processId: UUID)(implicit timeout: FiniteDuration): ProcessState

    Permalink

    Returns the process state.

    Returns the process state.

    Throws a NoSuchProcessException when the process with the given identifier does not exist.

    processId

    The process identifier.

    returns

    The process state.

  20. def getProcessStateAsync(processId: UUID)(implicit timeout: FiniteDuration): Future[ProcessState]

    Permalink

    Get all state that is or was available in the Petri Net marking.

    Get all state that is or was available in the Petri Net marking.

    processId

    The process id of the active process for which the accumulated state needs to be retrieved.

    returns

    Accumulated state.

  21. def getVisualState(processId: UUID)(implicit timeout: FiniteDuration): String

    Permalink
  22. def handleEvent(processId: UUID, event: Any)(implicit timeout: FiniteDuration): Unit

    Permalink

    Notifies Baker that an event has happened and waits until all the actions which depend on this event are executed.

    Notifies Baker that an event has happened and waits until all the actions which depend on this event are executed.

    processId

    The process id

    event

    The event instance

  23. def handleEventAsync(processId: UUID, event: Any): BakerResponse

    Permalink

    Fires an event to baker for a process.

    Fires an event to baker for a process. This is fire and forget in the sense that if nothing is done with the response you have NO guarantee that the event is received by baker.

  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. val implementationErrors: Set[String]

    Permalink
  26. val implementations: Map[String, () ⇒ AnyRef]

    Permalink
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. implicit val materializer: ActorMaterializer

    Permalink
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. val petriNetRuntime: PetriNetRuntime[Place, Transition, ProcessState, RuntimeEvent]

    Permalink
  33. def shutdown(timeout: FiniteDuration = 30 seconds): Unit

    Permalink

    Attempts to gracefully shutdown the baker system.

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped