org.opennms.netmgt.provision.service.tasks
Class AsyncTask<T>
java.lang.Object
org.opennms.netmgt.provision.service.tasks.Task
org.opennms.netmgt.provision.service.tasks.AsyncTask<T>
public class AsyncTask<T>
- extends Task
|
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 |
AsyncTask
public AsyncTask(DefaultTaskCoordinator coordinator,
ContainerTask parent,
Async<T> async)
AsyncTask
public AsyncTask(DefaultTaskCoordinator coordinator,
ContainerTask parent,
Async<T> async,
Callback<T> callback)
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.