Class

dagr.core.tasksystem

Pipeline

Related Doc: package tasksystem

Permalink

abstract class Pipeline extends Task with LazyLogging

Simple trait to track tasks within a pipeline

Linear Supertypes
LazyLogging, Task, Dependable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Pipeline
  2. LazyLogging
  3. Task
  4. Dependable
  5. AnyRef
  6. 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 Pipeline(outputDirectory: Option[Path] = None, prefix: Option[String] = None, suffix: Option[String] = None)

    Permalink

Abstract Value Members

  1. abstract def build(): Unit

    Permalink

    Build your pipeline here.

    Build your pipeline here. Use ==> to define dependencies between tasks and use root ==> myTask to capture tasks that have no dependencies and can start immediately.

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !=>(other: MultiTask): other.type

    Permalink

    Removes this as a dependency for other

    Removes this as a dependency for other

    Definition Classes
    TaskDependable
  3. def !=>(other: Task): other.type

    Permalink

    Removes this as a dependency for other

    Removes this as a dependency for other

    Definition Classes
    TaskDependable
  4. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  5. def +(other: String): String

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from Pipeline to ArrowAssoc[Pipeline] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. def ::(other: Task): MultiTask

    Permalink

    Combines this task with another task into a MultiTask.

    Combines this task with another task into a MultiTask.

    Definition Classes
    Task
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def ==>(other: MultiTask): other.type

    Permalink

    Creates a dependency on this dependable for all the Tasks in the provided MultiTask.

    Creates a dependency on this dependable for all the Tasks in the provided MultiTask.

    Definition Classes
    TaskDependable
  10. def ==>(other: Task): other.type

    Permalink

    Sets up a dependency between two tasks.

    Sets up a dependency between two tasks. The task on the left side of the arrow (i.e. this) is set to be a predecessor/dependency of that task on the right hand side of the arrow (i.e. other).

    returns

    the "other" task so that chains of calls like a ==> b ==> c work correctly

    Definition Classes
    TaskDependable
  11. def addTask(task: Task): task.type

    Permalink

    Adds a single task, and returns the added task.

  12. def addTasks(task: Task*): Unit

    Permalink

    Add one or more tasks to this pipeline.

  13. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def contains(task: Task): Boolean

    Permalink

    True if we this pipeline is tracking this direct ancestor task, false otherwise.

  16. def ensuring(cond: (Pipeline) ⇒ Boolean, msg: ⇒ Any): Pipeline

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def getTasks: Traversable[_ <: Task]

    Permalink

    Will call build() and get the tasks.

    Will call build() and get the tasks.

    returns

    the list of tasks of to run.

    Definition Classes
    PipelineTask
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  29. var name: String

    Permalink

    The name of the task.

    The name of the task.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  33. def onComplete(exitCode: Int): Boolean

    Permalink

    Finalize anything after the task has been run.

    Finalize anything after the task has been run.

    This method should be called after a task has been run. The intended use of this method is to allow for any modification of this task prior to any dependent tasks being run. This would allow any parameters that were passed to dependent tasks as call-by-name to be finalized here. For example, we could have passed an Option[String] that is None until make it Some(String) in this method. Then when the dependent task's getTasks method is called, it can call 'get' on the option and get something.

    exitCode

    the exit code of the task, which could also be 1 due to the system terminating this process

    returns

    true if we c

    Definition Classes
    Task
  34. val outputDirectory: Option[Path]

    Permalink
  35. def removeDependency(task: Task): Boolean

    Permalink

    Removes a dependency by removing the supplied task from the list of dependencies for this task and removing this from the list of tasks depending on "task".

    Removes a dependency by removing the supplied task from the list of dependencies for this task and removing this from the list of tasks depending on "task".

    task

    a task on which this task depends

    returns

    true if a dependency existed and was removed, false otherwise

    Definition Classes
    Task
  36. def retry(taskInfo: TaskExecutionInfo, failedOnComplete: Boolean): Option[Task]

    Permalink

    Retry the given task.

    Retry the given task.

    taskInfo

    the task execution information for the task to be retried.

    failedOnComplete

    true the task failed while running its onComplete method, otherwise failed while running its command

    returns

    the task to be retried, None if it is not to be retried.

    Definition Classes
    Task
  37. val root: Dependable

    Permalink

    A name exposed to sub-classes that can be treated like a Task, to add root tasks.

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def withName(name: String): Pipeline.this.type

    Permalink

    Sets the name of this task.

    Sets the name of this task.

    Definition Classes
    Task
  44. def [B](y: B): (Pipeline, B)

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

Inherited from LazyLogging

Inherited from Task

Inherited from Dependable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Pipeline to any2stringadd[Pipeline]

Inherited by implicit conversion StringFormat from Pipeline to StringFormat[Pipeline]

Inherited by implicit conversion Ensuring from Pipeline to Ensuring[Pipeline]

Inherited by implicit conversion ArrowAssoc from Pipeline to ArrowAssoc[Pipeline]

Ungrouped