org.globus.cog.abstraction.interfaces
Interface DelegatedTaskHandler
- All Known Implementing Classes:
- DelegatedFileTransferHandler
- public interface DelegatedTaskHandler
Implements the semantics to execute the given
Taskin a seperate thread,
thereby not blocking the calls to the
TaskHandler.
|
Method Summary |
void |
cancel()
|
void |
resume()
|
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()
|
submit
public void submit(Task task)
throws IllegalSpecException,
InvalidSecurityContextException,
InvalidServiceContactException,
TaskSubmissionException
- This method is responsible for submitting the given
Task
to the remote Service in compliance with the appropriate
provider. It executes in a seperate thread of execution so that it doesnt
block the submission of other tasks.
- Parameters:
task - the task to be executed
- Throws:
IllegalSpecException - when the specification does not confirm to the type of the
task and the given provider.
InvalidSecurityContextException - when the security context associated with the task in
invalid.
InvalidServiceContactException - when the service contact of the remote service in invalid.
TaskSubmissionException - when a generic exception occurs prohibiting the submission of
the task.
suspend
public void suspend()
throws InvalidSecurityContextException,
TaskSubmissionException
- Throws:
InvalidSecurityContextException
TaskSubmissionException
resume
public void resume()
throws InvalidSecurityContextException,
TaskSubmissionException
- Throws:
InvalidSecurityContextException
TaskSubmissionException
cancel
public void cancel()
throws InvalidSecurityContextException,
TaskSubmissionException
- Throws:
InvalidSecurityContextException
TaskSubmissionException