-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description enumTaskNode.GraphTypeThe type of graph, dictating how a TaskGraph will be evaluated.
classTaskNode.BuilderclassTaskNode.TaskGraphA graph or sub-graph of tasks.
interfaceTaskNode.DefinedTaskThis is an abstraction above TaskDefinition that allows more flexibility for the implementing class name.
classTaskNode.TaskDefinitionAn individual task.
-
Method Summary
Modifier and Type Method Description static TaskNode.TaskGraphbuild(TaskNode.GraphType type, Consumer<TaskNode.Builder> closure)Build a new TaskGraph . static TaskNode.TaskGraphemptyGraph(TaskNode.GraphType type)Creates an empty TaskGraph . static TaskNode.TaskGraphsingleton(TaskNode.GraphType type, String name, Class<out Task> implementingClass)Creates a TaskGraph with a single Task . static TaskNode.TaskDefinitiontask(String name, Class<out Task> implementingClass)Creates a TaskDefinition for the provided Task class. static TaskNode.BuilderBuilder(TaskNode.GraphType type)-
-
Method Detail
-
build
static TaskNode.TaskGraph build(TaskNode.GraphType type, Consumer<TaskNode.Builder> closure)
Build a new TaskGraph .
- Parameters:
type- The type of graphclosure- A configuration block
-
emptyGraph
static TaskNode.TaskGraph emptyGraph(TaskNode.GraphType type)
Creates an empty TaskGraph .
-
singleton
static TaskNode.TaskGraph singleton(TaskNode.GraphType type, String name, Class<out Task> implementingClass)
- Parameters:
name- The human-friendly name of the task.implementingClass- The Task class
-
task
static TaskNode.TaskDefinition task(String name, Class<out Task> implementingClass)
Creates a TaskDefinition for the provided Task class.
- Parameters:
name- The human-friendly name of the task.
-
Builder
static TaskNode.Builder Builder(TaskNode.GraphType type)
-
-
-
-