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
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])

    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]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    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)
    Implicit
    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
    Definition Classes
    AnyRef → Any
  6. final def allDependenciesFinished: Boolean
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. lazy val color: String
  10. implicit val comapped: TaskComapped[DL]
  11. val dependencies: DL
  12. val description: String
  13. def ensuring(cond: (FullTask[R, DL]) ⇒ Boolean, msg: ⇒ Any): FullTask[R, DL]
    Implicit
    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]
    Implicit
    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]
    Implicit
    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]
    Implicit
    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
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String
    Implicit
    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[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. final val index: Int

    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
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. implicit val orchestrator: AbstractOrchestrator[_]
  29. final def report: Report[R]

    The TaskReport of this task.

  30. final def result: Option[R]
  31. final def state: State

    returns

    the current state of this task.

  32. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  33. val timeout: Duration
  34. def toString(): String
    Definition Classes
    FullTask → AnyRef → Any
  35. final def unsafeResult: R

    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
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  39. def withColor(message: ⇒ String): String
  40. def withOrchestratorAndTaskPrefix(message: ⇒ String): String
  41. def withTaskPrefix(message: ⇒ String): String
  42. def [B](y: B): (FullTask[R, DL], B)
    Implicit
    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