org.opennms.netmgt.provision.service.tasks
Class AsyncTask<T>

java.lang.Object
  extended by org.opennms.netmgt.provision.service.tasks.Task
      extended by org.opennms.netmgt.provision.service.tasks.AsyncTask<T>

public class AsyncTask<T>
extends Task


Constructor Summary
AsyncTask(DefaultTaskCoordinator coordinator, ContainerTask parent, Async<T> async)
           
AsyncTask(DefaultTaskCoordinator coordinator, ContainerTask parent, Async<T> async, Callback<T> callback)
           
 
Method Summary
protected  void doSubmit()
          This method submits a task to be executed and is called when all dependencies are completed for that task This method should place a runnable on an executor or submit the task in some other way so that it will run as soon as possible.
 String toString()
           
 
Methods inherited from class org.opennms.netmgt.provision.service.tasks.Task
addDependent, addPrerequisite, completeSubmit, getCoordinator, getMonitor, isFinished, isScheduled, markTaskAsCompleted, postSchedule, preSchedule, schedule, submitRunnable, waitFor, waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsyncTask

public AsyncTask(DefaultTaskCoordinator coordinator,
                 ContainerTask parent,
                 Async<T> async)

AsyncTask

public AsyncTask(DefaultTaskCoordinator coordinator,
                 ContainerTask parent,
                 Async<T> async,
                 Callback<T> callback)
Method Detail

toString

public String toString()
Overrides:
toString in class Task

doSubmit

protected void doSubmit()
Description copied from class: Task
This method submits a task to be executed and is called when all dependencies are completed for that task This method should place a runnable on an executor or submit the task in some other way so that it will run as soon as possible. Tasks that have no processing to be done may override completeSubmit to notify the Task coordinator that the task is done.

Overrides:
doSubmit in class Task


Copyright © 2009. All Rights Reserved.