public class TaskGraphBuilder extends TaskBuilder
Modifier and Type | Class and Description |
---|---|
static interface |
TaskGraphBuilder.Handle
Handle to the task.
|
EMPTY_BUILDER
Constructor and Description |
---|
TaskGraphBuilder() |
Modifier and Type | Method and Description |
---|---|
TaskGraphBuilder.Handle |
add(String displayName,
Executable e)
Adds a new work unit and returns its handle, which can then be used to set up dependencies among them.
|
TaskGraphBuilder |
attains(Milestone... milestones)
Given milestones will be set as achievements for the next task.
|
Iterable<? extends Task> |
discoverTasks(Reactor reactor)
Returns all the tasks that this builder contributes to.
|
TaskGraphBuilder |
followedBy()
Indicates that the task to be added requires the completion of the last added task.
|
TaskGraphBuilder |
notFatal() |
TaskGraphBuilder |
requires(Milestone... milestones)
Given milestones will be set as pre-requisites for the next task to be added.
|
fromTasks, union, union
public Iterable<? extends Task> discoverTasks(Reactor reactor) throws IOException
TaskBuilder
discoverTasks
in class TaskBuilder
IOException
public TaskGraphBuilder.Handle add(String displayName, Executable e)
displayName
- Display name of the task.e
- The actual work.public TaskGraphBuilder followedBy()
public TaskGraphBuilder requires(Milestone... milestones)
public TaskGraphBuilder attains(Milestone... milestones)
public TaskGraphBuilder notFatal()
Copyright © 2018. All rights reserved.