Package org.opennms.core.tasks
Class TaskBuilder<T extends ContainerTask<?>>
- java.lang.Object
-
- org.opennms.core.tasks.TaskBuilder<T>
-
public class TaskBuilder<T extends ContainerTask<?>> extends Object
TaskBuilder- Version:
- $Id: $
- Author:
- brozow
-
-
Constructor Summary
Constructors Constructor Description TaskBuilder(T task)
Constructor for TaskBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskBuilder<T>
add(Runnable... runnables)
addTaskBuilder<T>
add(NeedsContainer... needers)
addTaskBuilder<T>
add(RunInBatch... runIns)
addTaskBuilder<T>
addBatch(Runnable... runnables)
addBatchTaskBuilder<T>
addBatch(RunInBatch... runIns)
addBatchTaskBuilder<T>
addSequence(Runnable... runnables)
addSequenceTaskBuilder<T>
addSequence(RunInBatch... runIns)
addSequenceTaskBuilder<BatchTask>
createBatch()
createBatchTaskBuilder<SequenceTask>
createSequence()
createSequenceT
get()
getT
get(ContainerTask<?> parent)
getTaskBuilder<T>
setParent(ContainerTask<?> parent)
setParent
-
-
-
Constructor Detail
-
TaskBuilder
public TaskBuilder(T task)
Constructor for TaskBuilder.
- Type Parameters:
T
- a T object.- Parameters:
task
- a T object.
-
-
Method Detail
-
createSequence
public TaskBuilder<SequenceTask> createSequence()
createSequence
- Returns:
- a
TaskBuilder
object.
-
createBatch
public TaskBuilder<BatchTask> createBatch()
createBatch
- Returns:
- a
TaskBuilder
object.
-
setParent
public TaskBuilder<T> setParent(ContainerTask<?> parent)
setParent
- Parameters:
parent
- aContainerTask
object.- Returns:
- a
TaskBuilder
object.
-
addSequence
public TaskBuilder<T> addSequence(Runnable... runnables)
addSequence
- Parameters:
runnables
- aRunnable
object.- Returns:
- a
TaskBuilder
object.
-
addSequence
public TaskBuilder<T> addSequence(RunInBatch... runIns)
addSequence
- Parameters:
runIns
- aRunInBatch
object.- Returns:
- a
TaskBuilder
object.
-
addBatch
public TaskBuilder<T> addBatch(Runnable... runnables)
addBatch
- Parameters:
runnables
- aRunnable
object.- Returns:
- a
TaskBuilder
object.
-
addBatch
public TaskBuilder<T> addBatch(RunInBatch... runIns)
addBatch
- Parameters:
runIns
- aRunInBatch
object.- Returns:
- a
TaskBuilder
object.
-
add
public TaskBuilder<T> add(Runnable... runnables)
add
- Parameters:
runnables
- aRunnable
object.- Returns:
- a
TaskBuilder
object.
-
add
public TaskBuilder<T> add(RunInBatch... runIns)
add
- Parameters:
runIns
- aRunInBatch
object.- Returns:
- a
TaskBuilder
object.
-
add
public TaskBuilder<T> add(NeedsContainer... needers)
add
- Parameters:
needers
- aNeedsContainer
object.- Returns:
- a
TaskBuilder
object.
-
get
public T get()
get
- Returns:
- a T object.
-
get
public T get(ContainerTask<?> parent)
get
- Parameters:
parent
- aContainerTask
object.- Returns:
- a T object.
-
-