|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Implements the semantics to execute the given Taskin a seperate
thread, thereby not blocking the calls to the TaskHandler. The
DelegatedTaskHandler can handle only one task at a time.
| Method Summary | |
void |
cancel()
Cancels the execution of a task that was previously submitted by the submit(Task)method. |
void |
resume()
Resumes the execution of a task that was previously suspended by the suspend()method. |
void |
submit(Task task)
This method is responsible for submitting the given Task
to the remote Service in compliance with the appropriate
provider. |
void |
suspend()
Suspends the currently active task. |
| Method Detail |
public void submit(Task task)
throws IllegalSpecException,
InvalidSecurityContextException,
InvalidServiceContactException,
TaskSubmissionException
Task
to the remote Service in compliance with the appropriate
provider. It executes in a seperate thread so that it doesnt block the
submission of other tasks.
task - the task to be executed
IllegalSpecException - when the Specificationdoes not confirm to the type
of the task and the given provider.
InvalidSecurityContextException - when the SecurityContextassociated with the task in
invalid.
InvalidServiceContactException - when the ServiceContactof the remote service in
invalid.
TaskSubmissionException - when a generic exception occurs prohibiting the submission of
the task.
public void suspend()
throws InvalidSecurityContextException,
TaskSubmissionException
resume()method
InvalidSecurityContextException - when the SecurityContextassociated with the task is
invalid
TaskSubmissionException - when generic errors occur
public void resume()
throws InvalidSecurityContextException,
TaskSubmissionException
suspend()method.
InvalidSecurityContextException - when the SecurityContextassociated with the task is
invalid
TaskSubmissionException - when generic errors occur
public void cancel()
throws InvalidSecurityContextException,
TaskSubmissionException
submit(Task)method. Tasks once canceled
cannot be resumed for execution later.
InvalidSecurityContextException - when the SecurityContextassociated with the task is
invalid
TaskSubmissionException - when generic errors occur
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||