|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Task
Task is the base interface of any deployment task to schedule. A Task could be executed by a Scheduler when its previous tasks have been already executed by the Scheduler. This Task interface should be specialized by inheritance.
Method Summary | |
---|---|
void |
addPreviousTask(Task task)
Add a previous task. |
void |
execute(Object context)
Execute the task. |
Task[] |
getPreviousTasks()
Return all the previous tasks. |
Object |
getResult()
Return the result of the execution. |
void |
removePreviousTask(Task task)
Remove a previous task. |
void |
setResult(Object result)
Set the result of the execution. |
Method Detail |
---|
void addPreviousTask(Task task)
task
- - The previous task to add.void removePreviousTask(Task task)
task
- - The previous task to remove.Task[] getPreviousTasks()
void execute(Object context) throws Exception
context
- - The context in which the task will be executed.
Exception
- - Thrown if a problem obscurs during execution.Object getResult()
void setResult(Object result)
result
- - The result of the execution.
TODO: Is it really useful to provide this method?
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |