|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ncl.cs.instantsoap.wsapi.impl.WebServiceDispatcherImpl
public class WebServiceDispatcherImpl
Implementation of the web service dispatcher, using the strategy dispatcher stack.
Constructor Summary | |
---|---|
WebServiceDispatcherImpl()
|
Method Summary | |
---|---|
MetaData |
describeApplication(String appName)
Describe an application. |
AsynchronousServiceDispatcher |
getAsyncDispatcher()
|
List<MetaData> |
getInputs(String application)
Describe the inputs of an application. |
List<MetaData> |
getOutputs(String application)
Describe the outputs of an application. |
BlockedInvocationResponse |
invokeAndBlock(JobSpecification jobSpec)
Invoke the jobManager, and return the result. |
NonBlockingInvocationResponse |
invokeNonBlocking(JobSpecification jobSpec)
Invoke the jobManager, returning immediately. |
List<String> |
listApplications()
List all of the applications known by this service. |
static WebServiceDispatcher |
loggingDispatcher(WebServiceDispatcher dispatcher)
|
static InvocationHandler |
loggingHandler(WebServiceDispatcher dispatcher)
|
NonBlockingInvocationResponse |
pollForResult(UUID uuid)
Poll the jobManager for completion. |
void |
setAsyncDispatcher(AsynchronousServiceDispatcher asyncDispatcher)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebServiceDispatcherImpl()
Method Detail |
---|
public AsynchronousServiceDispatcher getAsyncDispatcher()
public void setAsyncDispatcher(AsynchronousServiceDispatcher asyncDispatcher)
public List<String> listApplications()
WebServiceDispatcher
listApplications
in interface WebServiceDispatcher
List
of String
s of names of applicationspublic MetaData describeApplication(String appName) throws UnknownApplicationException
WebServiceDispatcher
describeApplication
in interface WebServiceDispatcher
appName
- the name of the application to describe
MetaData
instance capturing the name,
and potentially description and semantic annotation of the
application
UnknownApplicationException
public List<MetaData> getInputs(String application) throws UnknownApplicationException
WebServiceDispatcher
getInputs
in interface WebServiceDispatcher
application
- the name of the application to find inputs for
List
of MetaData
objects describing
the inputs of the application
UnknownApplicationException
public List<MetaData> getOutputs(String application) throws UnknownApplicationException
WebServiceDispatcher
getOutputs
in interface WebServiceDispatcher
application
- the name of the application to find outputs for
List
of MetaData
objects describing
the outputs of the application
UnknownApplicationException
public BlockedInvocationResponse invokeAndBlock(JobSpecification jobSpec) throws InvalidJobSpecificationException, JobExecutionException, OperationUnavailableException
WebServiceDispatcher
invokeAndBlock
in interface WebServiceDispatcher
jobSpec
- specify the jobManager to run
InvalidJobSpecificationException
- if the service is
unable to process jobSpecification
JobExecutionException
- if there was a failure from
execution of the jobManager
OperationUnavailableException
- if this operation is not supported by this dispatcherpublic NonBlockingInvocationResponse invokeNonBlocking(JobSpecification jobSpec) throws InvalidJobSpecificationException, JobExecutionException
WebServiceDispatcher
invokeNonBlocking
in interface WebServiceDispatcher
jobSpec
- specify the jobManager to run
InvalidJobSpecificationException
- if the service is
unable to process jobSpecification
JobExecutionException
- if there was a failure from execution of the jobManagerpublic NonBlockingInvocationResponse pollForResult(UUID uuid) throws UnknownUuidException, JobExecutionException
WebServiceDispatcher
pollForResult
in interface WebServiceDispatcher
uuid
- the SerializableUuid of the jobManager to poll
UnknownUuidException
- if the SerializableUuid is not known
JobExecutionException
- if there was a failure from
execution of the jobSpecificationpublic static WebServiceDispatcher loggingDispatcher(WebServiceDispatcher dispatcher)
public static InvocationHandler loggingHandler(WebServiceDispatcher dispatcher)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |