|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.client.AsyncClient
public class AsyncClient
Implements the client side of the asynchonous SOAP-based MOBY service invocation specification. Normally, given some input data, one would call sendRequest(), then poll() until the jobs are finished, then getResults(), then destroy().
Field Summary | |
---|---|
static String |
CONTENT_TYPE
|
static String |
MOBY_RESULT_PROPERTY_PREFIX
|
static String |
MOBY_SERVICE_INVOC_ID_TAG_NAME
|
static String |
USER_AGENT
|
static String |
WS_ADDRESSING_TO_TAG_NAME
|
static String |
WSRP_MULTI_PROPERTY_TAG_NAME
|
static String |
WSRP_PROPERTY_TAG_NAME
|
Constructor Summary | |
---|---|
AsyncClient()
|
Method Summary | |
---|---|
static void |
destroy(EndpointReference epr)
Method to be called when all results have been retrieved from a service invocation, or if the client wishes the invocation to be prematurely terminated. |
static MobyPackage |
getResultPackage(EndpointReference epr,
String queryId)
|
static InputStream |
getResultStream(EndpointReference epr,
Collection<String> queryIds)
|
static InputStream |
getResultStream(EndpointReference epr,
String queryId)
|
static InputStream |
getResultStream(EndpointReference epr,
String[] queryIds)
Retrieves the result message for the given set of jobs in a service invocation. |
static String |
getResultText(EndpointReference epr,
Collection<String> queryIds)
|
static String |
getResultText(EndpointReference epr,
String queryId)
Retrieves the result text for the given set of jobs in a service invocation. |
static String |
getResultText(EndpointReference epr,
String[] queryIds)
|
static AnalysisEvent[] |
poll(EndpointReference epr,
Collection<String> queryIds)
|
static AnalysisEvent |
poll(EndpointReference epr,
String queryId)
|
static AnalysisEvent[] |
poll(EndpointReference epr,
String[] queryIds)
Polls the status (e.g. running, completed) of queries associated with a service invocation. |
static EndpointReference |
sendRequest(MobyService service,
MobyContentInstance contents)
|
static EndpointReference |
sendRequest(MobyService service,
String xml)
|
static EndpointReference |
sendRequest(String serviceURL,
String xml,
String servicename)
Initiates a request for service. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String USER_AGENT
public static final String CONTENT_TYPE
public static final String WS_ADDRESSING_TO_TAG_NAME
public static final String WSRP_MULTI_PROPERTY_TAG_NAME
public static final String WSRP_PROPERTY_TAG_NAME
public static final String MOBY_SERVICE_INVOC_ID_TAG_NAME
public static final String MOBY_RESULT_PROPERTY_PREFIX
Constructor Detail |
---|
public AsyncClient()
Method Detail |
---|
public static EndpointReference sendRequest(MobyService service, MobyContentInstance contents) throws Exception
Exception
public static EndpointReference sendRequest(MobyService service, String xml) throws Exception
Exception
public static EndpointReference sendRequest(String serviceURL, String xml, String servicename) throws Exception
serviceURL
- the MOBY servioce endpoint URL for posting dataxml
- the MOBY request payload (omit the starting XML declaration)servicename
- the unqualified name of the service
Exception
public static AnalysisEvent poll(EndpointReference epr, String queryId) throws Exception
Exception
public static AnalysisEvent[] poll(EndpointReference epr, Collection<String> queryIds) throws Exception
Exception
public static AnalysisEvent[] poll(EndpointReference epr, String[] queryIds) throws Exception
epr
- a service invocation reference returned from sendRequest()queryIds
- the list of jobs about which a status update is being requested
Exception
public static void destroy(EndpointReference epr) throws Exception
epr
- the service invocation whose server-side resources should be freed
Exception
public static MobyPackage getResultPackage(EndpointReference epr, String queryId) throws Exception
Exception
public static InputStream getResultStream(EndpointReference epr, String queryId) throws Exception
Exception
public static InputStream getResultStream(EndpointReference epr, Collection<String> queryIds) throws Exception
Exception
public static InputStream getResultStream(EndpointReference epr, String[] queryIds) throws Exception
Exception
public static String getResultText(EndpointReference epr, String queryId) throws Exception
Exception
public static String getResultText(EndpointReference epr, Collection<String> queryIds) throws Exception
Exception
public static String getResultText(EndpointReference epr, String[] queryIds) throws Exception
Exception
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |