|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The TaskGraph enables remote execution of constituent
ExecutableObject s by maintaining the control dependencies
between them.
| Field Summary | |
static int |
CASCADED_TASK_HANDLER
Submits all Taskobjects (including those of children
TaskGraph) to the SAME TaskHandler. |
static int |
NON_CASCADED_TASK_HANDLER
Submits all tasks of a TaskGraphto the same TaskHandler. |
| Method Summary | |
boolean |
cancel(Identity identity)
Cancels the execution of an ExecutableObject. |
Enumeration |
getActiveNodes()
|
Enumeration |
getCanceledNodes()
|
Enumeration |
getCompletedNodes()
|
Enumeration |
getFailedNodes()
|
TaskGraph |
getGraph()
|
Enumeration |
getSubmittedNodes()
|
Enumeration |
getSuspendedNodes()
|
int |
getTaskHandlerPolicy()
|
Enumeration |
getUnsubmittedNodes()
|
boolean |
resume(Identity identity)
Resumes the execution of an ExecutableObjectin the taskgraph
that was previously suspended by the
suspend(Identity)method. |
void |
setTaskHandlerPolicy(int policy)
|
void |
submit(TaskGraph taskgraph)
Submits the given TaskGraphfor execuiton. |
boolean |
suspend(Identity identity)
Suspends an ExecutableObjectthat is currently active in the
taskgraph. |
| Field Detail |
public static final int CASCADED_TASK_HANDLER
Taskobjects (including those of children
TaskGraph) to the SAME TaskHandler.
public static final int NON_CASCADED_TASK_HANDLER
TaskGraphto the same TaskHandler.
However, tasks of different TaskGraphare submitted to DIFFERENT
TaskHandlerrespectively.
| Method Detail |
public void submit(TaskGraph taskgraph)
throws IllegalSpecException,
InvalidSecurityContextException,
InvalidServiceContactException,
TaskSubmissionException
TaskGraphfor execuiton. The
TaskGraph is submitted to the TaskHandler
in an asynchronous mode, whereby the method returns immediately after
submitting the task graph. The status and output of the tasks can be
monitored asynchronously by the
ExecutableObject.addStatusListener(StatusListener)and
Task.addOutputListener(OutputListener)methods respectively.
taskgraph - the TaskGraph to be submitted
IllegalSpecException - when the Specificationassociated with any task in
this code>TaskGraph is illegal
InvalidSecurityContextException - when the SecurityContextassociated with with any
task in this code>TaskGraph is invalid
InvalidServiceContactException - when the ServiceContactassociated with any task in
this code>TaskGraph is invalid
TaskSubmissionException - when generic errors occur during taskgraph submission
public boolean suspend(Identity identity)
throws InvalidSecurityContextException,
TaskSubmissionException
ExecutableObjectthat is currently active in the
taskgraph. A suspended object can be resumed using the
resume(Identity)method
identity - the identity of the ExecutableObject to be
suspended
InvalidSecurityContextException - when the SecurityContextassociated with
ExecutableObject is invalid
TaskSubmissionException - when generic errors occur
public boolean resume(Identity identity)
throws InvalidSecurityContextException,
TaskSubmissionException
ExecutableObjectin the taskgraph
that was previously suspended by the
suspend(Identity)method.
identity - the identity of the ExecutableObject to be
suspended
InvalidSecurityContextException - when the SecurityContextassociated with
ExecutableObject is invalid
TaskSubmissionException - when generic errors occur
public boolean cancel(Identity identity)
throws InvalidSecurityContextException,
TaskSubmissionException
ExecutableObject.
identity - the identity of the ExecutableObject to be
suspended
InvalidSecurityContextException - when the SecurityContextassociated with
ExecutableObject is invalid
TaskSubmissionException - when generic errors occurpublic TaskGraph getGraph()
public Enumeration getUnsubmittedNodes()
public Enumeration getSubmittedNodes()
public Enumeration getActiveNodes()
public Enumeration getFailedNodes()
public Enumeration getCompletedNodes()
public Enumeration getSuspendedNodes()
public Enumeration getCanceledNodes()
public void setTaskHandlerPolicy(int policy)
public int getTaskHandlerPolicy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||