|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsynchronousServiceDispatcher
Invoke a job specification asynchronously.
The operations in this class will all return at the earliest opportunity. They will usually use other threads to do the actual work. Communication with be mediated by polling the dispatcher.
Method Summary | |
---|---|
MetaData |
describeApplication(String appName)
|
NonBlockingInvocationResponse |
getExecutionResult(UUID uuid)
Return the result of the jobManager. |
Set<MetaData> |
getInputs(String application)
|
Set<MetaData> |
getOutputs(String application)
|
UUID |
invoke(JobSpecification specification)
Invoke the jobManager. |
List<String> |
listApplications()
|
InvocationState |
pollState(UUID uuid)
Poll the state of the invocation. |
Method Detail |
---|
List<String> listApplications()
MetaData describeApplication(String appName) throws UnknownApplicationException
UnknownApplicationException
Set<MetaData> getInputs(String application) throws UnknownApplicationException
UnknownApplicationException
Set<MetaData> getOutputs(String application) throws UnknownApplicationException
UnknownApplicationException
UUID invoke(JobSpecification specification) throws InvalidJobSpecificationException, JobExecutionException, UnknownApplicationException
specification
- the JobSpecification of the jobManager to run
InvalidJobSpecificationException
- if the specification is invalid
JobExecutionException
- if the execution failed
UnknownApplicationException
InvocationState pollState(UUID uuid) throws UnknownUuidException, JobExecutionException
uuid
- the SerializableUuid of the jobManager to be polled
UnknownUuidException
- if the uuid is not known by this dispatcher
JobExecutionException
- if the job has failedNonBlockingInvocationResponse getExecutionResult(UUID uuid) throws UnknownUuidException, IllegalInvocationStateException, JobExecutionException
uuid
-
UnknownUuidException
- if the uuid is not known by this dispatcher
IllegalInvocationStateException
- if the job associated with the uuid has not completed
JobExecutionException
- if the job has failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |