|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.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 AsynchronousServiceDispatcherUnknownApplicationException
public UUID invoke(JobSpecification jobSpec)
throws InvalidJobSpecificationException,
JobExecutionException,
UnknownApplicationException
AsynchronousServiceDispatcher
invoke in interface AsynchronousServiceDispatcherjobSpec - 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 AsynchronousServiceDispatcherid - the SerializableUuid of the jobManager to be polled
UnknownUuidException - if the uuid is not known by this dispatcher
JobExecutionException - if the job has failed
public NonBlockingInvocationResponse getExecutionResult(UUID id)
throws UnknownUuidException,
IllegalInvocationStateException,
JobExecutionException
AsynchronousServiceDispatcher
getExecutionResult in interface AsynchronousServiceDispatcherUnknownUuidException - 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
public Set<MetaData> getInputs(String application)
throws UnknownApplicationException
getInputs in interface AsynchronousServiceDispatcherUnknownApplicationException
public Set<MetaData> getOutputs(String application)
throws UnknownApplicationException
getOutputs in interface AsynchronousServiceDispatcherUnknownApplicationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||