|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.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 WebServiceDispatcherList of Strings of names of applications
public MetaData describeApplication(String appName)
throws UnknownApplicationException
WebServiceDispatcher
describeApplication in interface WebServiceDispatcherappName - 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 WebServiceDispatcherapplication - 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 WebServiceDispatcherapplication - 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 WebServiceDispatcherjobSpec - 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 dispatcher
public NonBlockingInvocationResponse invokeNonBlocking(JobSpecification jobSpec)
throws InvalidJobSpecificationException,
JobExecutionException
WebServiceDispatcher
invokeNonBlocking in interface WebServiceDispatcherjobSpec - 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
public NonBlockingInvocationResponse pollForResult(UUID uuid)
throws UnknownUuidException,
JobExecutionException
WebServiceDispatcher
pollForResult in interface WebServiceDispatcheruuid - 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 | |||||||||