org.jvnet.hudson.reactor
Class TaskBuilder
java.lang.Object
org.jvnet.hudson.reactor.TaskBuilder
- Direct Known Subclasses:
- TaskGraphBuilder
public abstract class TaskBuilder
- extends Object
Contributes Tasks to a Reactor execution.
- Author:
- Kohsuke Kawaguchi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_BUILDER
public static final TaskBuilder EMPTY_BUILDER
TaskBuilder that contributes no task.
TaskBuilder
public TaskBuilder()
discoverTasks
public abstract Iterable<? extends Task> discoverTasks(Reactor reactor)
throws IOException
- Returns all the tasks that this builder contributes to.
- Throws:
IOException
fromTasks
public static TaskBuilder fromTasks(Collection<? extends Task> tasks)
- Creates a
TaskBuilder that always discovers the given set of tasks.
union
public static TaskBuilder union(Iterable<? extends TaskBuilder> builders)
union
public static TaskBuilder union(TaskBuilder... builders)
Copyright © 2004-2011. All Rights Reserved.