org.opennms.netmgt.provision.service.tasks
Class ContainerTask

java.lang.Object
  extended by org.opennms.netmgt.provision.service.tasks.Task
      extended by org.opennms.netmgt.provision.service.tasks.ContainerTask
Direct Known Subclasses:
BatchTask, SequenceTask

public class ContainerTask
extends Task


Field Summary
protected  List<Task> m_children
           
protected  Task m_triggerTask
           
 
Constructor Summary
ContainerTask(DefaultTaskCoordinator coordinator, ContainerTask parent)
           
 
Method Summary
<T> AsyncTask<T>
add(Async<T> async, Callback<T> cb)
           
 SyncTask add(Runnable runnable)
           
 SyncTask add(Runnable runnable, String schedulingHint)
           
 void add(Task task)
           
protected  void addChildDependencies(Task child)
           
 void addPrerequisite(Task task)
          Add's prereq as a Prerequisite of this task.
protected  void completeSubmit()
          This method exists to allow a task to have no processing
protected  Task getTriggerTask()
           
 void schedule()
          This is called to add the task to the queue of tasks that can be considered to be runnable
 
Methods inherited from class org.opennms.netmgt.provision.service.tasks.Task
addDependent, debug, doSubmit, getCoordinator, getMonitor, info, isFinished, isScheduled, log, markTaskAsCompleted, postSchedule, preSchedule, submitRunnable, toString, waitFor, waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_triggerTask

protected final Task m_triggerTask

m_children

protected final List<Task> m_children
Constructor Detail

ContainerTask

public ContainerTask(DefaultTaskCoordinator coordinator,
                     ContainerTask parent)
Method Detail

addPrerequisite

public void addPrerequisite(Task task)
Description copied from class: Task
Add's prereq as a Prerequisite of this task. In other words... this taks cannot run until prereq was been complted.

Overrides:
addPrerequisite in class Task

schedule

public void schedule()
Description copied from class: Task
This is called to add the task to the queue of tasks that can be considered to be runnable

Overrides:
schedule in class Task

getTriggerTask

protected Task getTriggerTask()

add

public void add(Task task)

completeSubmit

protected void completeSubmit()
Description copied from class: Task
This method exists to allow a task to have no processing

Overrides:
completeSubmit in class Task

add

public SyncTask add(Runnable runnable)

add

public SyncTask add(Runnable runnable,
                    String schedulingHint)

add

public <T> AsyncTask<T> add(Async<T> async,
                            Callback<T> cb)

addChildDependencies

protected void addChildDependencies(Task child)


Copyright © 2009. All Rights Reserved.