Class

pt.tecnico.dsi.akkastrator

TaskBundle

Related Doc: package akkastrator

Permalink

abstract class TaskBundle[I, R] extends Task[Seq[R]]

TaskBundle: Variable number of tasks Fixed destination Different messages

Self Type
TaskBundle[I, R]
Linear Supertypes
Task[Seq[R]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TaskBundle
  2. Task
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TaskBundle(collection: ⇒ Seq[I], description: String, dependencies: Set[Task[_]] = Set.empty)(implicit orchestrator: AbstractOrchestrator)

    Permalink

Type Members

  1. class InnerOrchestrator extends Orchestrator

    Permalink

    TODO: what to do when a task of the inner orchestrator aborts? abort the inner orchestrator and consequently the TaskBundle?

Abstract Value Members

  1. abstract def toTask(input: I)(implicit orchestrator: AbstractOrchestrator): Task[R]

    Permalink

Concrete 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. final def abort(receivedMessage: Serializable, id: Long): Unit

    Permalink

    Causes this task and its orchestrator to abort.

    Causes this task and its orchestrator to abort. This will have the following effects:

    1. This task will change its state to Aborted. 2. Every unstarted task that depends on this one will never be started. This will happen because a task can only start if its dependencies have finished and this task did not finish. 3. Waiting tasks will be untouched and the orchestrator will still be prepared to handle their responses. 4. The method onFinish will never be called. Similarly to the unstarted tasks, onFinish will only be invoked if all tasks have finished and this task did not finish. 5. The method onAbort will be invoked in the orchestrator.
    Definition Classes
    Task
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. final def behavior: Receive

    Permalink

    The behavior of this task.

    The behavior of this task. This is akin to the receive method of an actor, except for the fact that an all catching pattern match will cause the orchestrator to fail. For example:

    def behavior = Receive {
      case m => //Some code
    }

    This will cause the orchestrator to fail because the messages won't be handled by the correct tasks.

    Definition Classes
    TaskBundleTask
  7. def canEqual(other: Any): Boolean

    Permalink
    Definition Classes
    Task
  8. final def canStart: Boolean

    Permalink

    returns

    whether this task state is Unstarted and all its dependencies have finished.

    Definition Classes
    Task
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val color: String

    Permalink
    Definition Classes
    Task
  11. final def createMessage(id: Long): Any

    Permalink

    The constructor of the message to be sent.

    The constructor of the message to be sent.

    Definition Classes
    TaskBundleTask
  12. val dependencies: Set[Task[_]]

    Permalink
    Definition Classes
    Task
  13. val description: String

    Permalink
    Definition Classes
    Task
  14. final val destination: ActorPath

    Permalink

    The ActorPath to whom this task will send the message(s).

    The ActorPath to whom this task will send the message(s).

    Definition Classes
    TaskBundleTask
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Task → AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def finish(receivedMessage: Serializable, id: Long, result: Seq[R]): Unit

    Permalink

    Finishes this task, which implies:

    Finishes this task, which implies:

    1. Tasks that depend on this one will be started. 2. Messages that would be handled by this task will no longer be handled.

    Finishing an already finished task will throw an exception.

    receivedMessage

    the message which prompted the finish.

    id

    the id obtained from the message.

    Definition Classes
    Task
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def hasAborted: Boolean

    Permalink
    Definition Classes
    Task
  21. final def hasFinished: Boolean

    Permalink
    Definition Classes
    Task
  22. def hashCode(): Int

    Permalink
    Definition Classes
    Task → AnyRef → Any
  23. final val index: Int

    Permalink
    Definition Classes
    Task
  24. val innerOrchestratorId: Int

    Permalink
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. final def isWaiting: Boolean

    Permalink
    Definition Classes
    Task
  27. final def matchId(id: Long): Boolean

    Permalink
    Definition Classes
    Task
  28. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  31. final def result: Option[Seq[R]]

    Permalink

    returns

    The result of this task. A task will only have a result if it is finished.

    Definition Classes
    Task
  32. final def start(): Unit

    Permalink
    Attributes
    protected[pt.tecnico.dsi.akkastrator]
    Definition Classes
    Task
  33. final def state: TaskState

    Permalink

    returns

    the current state of this Task.

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

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

    Permalink
    Definition Classes
    Task → AnyRef → Any
  36. final def toTaskReport: TaskReport

    Permalink

    The immutable TaskReport of this task.

    The immutable TaskReport of this task.

    Definition Classes
    Task
  37. final def wait(): Unit

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

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

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

Inherited from Task[Seq[R]]

Inherited from AnyRef

Inherited from Any

Ungrouped