Class

pt.tecnico.dsi.akkastrator

FullTask

Related Doc: package akkastrator

Permalink

abstract class FullTask[R, DL <: HList] extends AnyRef

A full task represents a task plus its dependencies. It ensures a Task is only created when all of its dependencies have finished.

R

the result type of this task.

DL

the type of the dependencies HList.

Source
FullTask.scala
Linear Supertypes
AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FullTask
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FullTask(description: String, dependencies: DL, timeout: Duration)(implicit orchestrator: AbstractOrchestrator[_], comapped: TaskComapped[DL])

    Permalink

    description

    a text that describes this task in a human readable way, or a message key to be used in internationalization. It will be used when the status of this task orchestrator is requested.

    dependencies

    the tasks that must have finished in order for this task to be able to start.

    timeout

    the timeout after which the task will be aborted. The timeout does not survive restarts. It should be Duration.Inf or a positive duration greater then zero.

    orchestrator

    the orchestrator upon which this task will be added and ran. This is like an ExecutionContext for this task.

    comapped

    evidence proving DL is a HList of FullTasks. Also allows us to extract the results from the dependencies.

Abstract Value Members

  1. abstract def createTask(results: Results): 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. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from FullTask[R, DL] to any2stringadd[FullTask[R, DL]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (FullTask[R, DL], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FullTask[R, DL] to ArrowAssoc[FullTask[R, DL]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def allDependenciesFinished: Boolean

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Permalink
  10. implicit val comapped: TaskComapped[DL]

    Permalink

    evidence proving DL is a HList of FullTasks.

    evidence proving DL is a HList of FullTasks. Also allows us to extract the results from the dependencies.

  11. val dependencies: DL

    Permalink

    the tasks that must have finished in order for this task to be able to start.

  12. val description: String

    Permalink

    a text that describes this task in a human readable way, or a message key to be used in internationalization.

    a text that describes this task in a human readable way, or a message key to be used in internationalization. It will be used when the status of this task orchestrator is requested.

  13. def ensuring(cond: (FullTask[R, DL]) ⇒ Boolean, msg: ⇒ Any): FullTask[R, DL]

    Permalink
    Implicit information
    This member is added by an implicit conversion from FullTask[R, DL] to Ensuring[FullTask[R, DL]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (FullTask[R, DL]) ⇒ Boolean): FullTask[R, DL]

    Permalink
    Implicit information
    This member is added by an implicit conversion from FullTask[R, DL] to Ensuring[FullTask[R, DL]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): FullTask[R, DL]

    Permalink
    Implicit information
    This member is added by an implicit conversion from FullTask[R, DL] to Ensuring[FullTask[R, DL]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): FullTask[R, DL]

    Permalink
    Implicit information
    This member is added by an implicit conversion from FullTask[R, DL] to Ensuring[FullTask[R, DL]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from FullTask[R, DL] to StringFormat[FullTask[R, DL]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

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

    Permalink

    The index of this task in the task list maintained by the orchestrator.

    The index of this task in the task list maintained by the orchestrator. It could also be called id since it uniquely identifies this task inside the corresponding orchestrator.

  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  28. implicit val orchestrator: AbstractOrchestrator[_]

    Permalink

    the orchestrator upon which this task will be added and ran.

    the orchestrator upon which this task will be added and ran. This is like an ExecutionContext for this task.

  29. final def report: Report[R]

    Permalink

    The TaskReport of this task.

  30. final def result: Option[R]

    Permalink
  31. final def state: State

    Permalink

    returns

    the current state of this task.

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

    Permalink
    Definition Classes
    AnyRef
  33. val timeout: Duration

    Permalink

    the timeout after which the task will be aborted.

    the timeout after which the task will be aborted. The timeout does not survive restarts. It should be Duration.Inf or a positive duration greater then zero.

  34. def toString(): String

    Permalink
    Definition Classes
    FullTask → AnyRef → Any
  35. final def unsafeResult: R

    Permalink

    Returns this task result if it already finished.

    Returns this task result if it already finished. Otherwise throws an exception.

  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( ... )
  39. def withColor(message: ⇒ String): String

    Permalink
  40. def withOrchestratorAndTaskPrefix(message: ⇒ String): String

    Permalink
  41. def withTaskPrefix(message: ⇒ String): String

    Permalink
  42. def [B](y: B): (FullTask[R, DL], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FullTask[R, DL] to ArrowAssoc[FullTask[R, DL]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from FullTask[R, DL] to any2stringadd[FullTask[R, DL]]

Inherited by implicit conversion StringFormat from FullTask[R, DL] to StringFormat[FullTask[R, DL]]

Inherited by implicit conversion Ensuring from FullTask[R, DL] to Ensuring[FullTask[R, DL]]

Inherited by implicit conversion ArrowAssoc from FullTask[R, DL] to ArrowAssoc[FullTask[R, DL]]

Ungrouped