|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ncl.cs.instantsoap.servicedp.impl.AsynchronousServiceDispatcherImpl
public class AsynchronousServiceDispatcherImpl
A simple implementation of AsynchronousServiceDispatcher that delegates all the hard work on to a StartegyDispatcher.
Nested Class Summary | |
---|---|
class |
AsynchronousServiceDispatcherImpl.StrategyDispatcherListenerImpl
StrategyDispatcherListener is implemented as an inner class. |
Constructor Summary | |
---|---|
AsynchronousServiceDispatcherImpl(StrategyDispatcher dispatcher,
JobManager jobManager)
|
Method Summary | |
---|---|
MetaData |
describeApplication(String appName)
|
NonBlockingInvocationResponse |
getExecutionResult(UUID id)
Return the result of the jobManager. |
Set<MetaData> |
getInputs(String application)
|
Set<MetaData> |
getOutputs(String application)
|
UUID |
invoke(JobSpecification jobSpec)
Invoke the jobManager. |
List<String> |
listApplications()
|
InvocationState |
pollState(UUID id)
Poll the state of the invocation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsynchronousServiceDispatcherImpl(StrategyDispatcher dispatcher, JobManager jobManager)
Method Detail |
---|
public List<String> listApplications()
listApplications
in interface AsynchronousServiceDispatcher
public MetaData describeApplication(String appName) throws UnknownApplicationException
describeApplication
in interface AsynchronousServiceDispatcher
UnknownApplicationException
public UUID invoke(JobSpecification jobSpec) throws InvalidJobSpecificationException, JobExecutionException, UnknownApplicationException
AsynchronousServiceDispatcher
invoke
in interface AsynchronousServiceDispatcher
jobSpec
- the JobSpecification of the jobManager to run
InvalidJobSpecificationException
- if the specification is invalid
JobExecutionException
- if the execution failed
UnknownApplicationException
public InvocationState pollState(UUID id) throws UnknownUuidException, JobExecutionException
AsynchronousServiceDispatcher
pollState
in interface AsynchronousServiceDispatcher
id
- the SerializableUuid of the jobManager to be polled
UnknownUuidException
- if the uuid is not known by this dispatcher
JobExecutionException
- if the job has failedpublic NonBlockingInvocationResponse getExecutionResult(UUID id) throws UnknownUuidException, IllegalInvocationStateException, JobExecutionException
AsynchronousServiceDispatcher
getExecutionResult
in interface AsynchronousServiceDispatcher
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 failedpublic Set<MetaData> getInputs(String application) throws UnknownApplicationException
getInputs
in interface AsynchronousServiceDispatcher
UnknownApplicationException
public Set<MetaData> getOutputs(String application) throws UnknownApplicationException
getOutputs
in interface AsynchronousServiceDispatcher
UnknownApplicationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |