|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
void |
close()
Used to terminate a clients use of a Data Service. |
ActivityMetaData |
getActivityMetaData(java.lang.String activityName)
Retrieves meta data for the specified activity from the data service. |
DataResourceInfo |
getDataResourceInfo()
Retrieves the data resource information from the data service. |
RequestStatus |
getStatus()
Gets the status of the current request. |
java.lang.String[] |
getSupportedActivities()
Retrieves the names of the supported activities from the service. |
Response |
perform(Request request)
Sends the request document to a data service. |
Response |
perform(RequestComponent component)
Sends a single activity request to the data service. |
void |
pollUntilRequestCompleted(int pollInterval)
Polls the data service for the request status and blocks until the status is 'COMPLETED'. |
void |
pollUntilRequestCompleted(int pollInterval,
int timeoutPeriod)
Polls the data service for the request status and blocks until the status is 'COMPLETED'. |
| Methods inherited from interface uk.org.ogsadai.client.toolkit.service.DAIService |
getVersion |
| Methods inherited from interface uk.org.ogsadai.client.toolkit.service.Service |
getConnectionProperty, getPortTypes, getResourceIDs, getURL, ping, setConnectionProperty, setResourceID |
| Methods inherited from interface uk.org.ogsadai.client.toolkit.service.Properties |
getProperties, getProperty, getPropertyNames |
| Methods inherited from interface uk.org.ogsadai.client.toolkit.service.DataTransport |
getBlock, getDataTransportURL, getFully, getNBlocks, getResourceID, getStreamID, putBlock, putClosingBlock, putFully |
| Method Detail |
public Response perform(Request request)
throws ServerException,
ActivityException,
AuthorisationException,
ResourceException,
ServiceCommsException,
UnsupportedActivityException,
PerformException
request - Request specifying the
work to be performed at the data service.
Response from the data service
containing the status of the request
and any output results.
PerformException - If there is a problem at the service
that prevents the request from
starting to process.
ActivityException - If an activity produces an error when
executed at the service, causing the
request to fail.
ServiceCommsException - If there was an error communicating with
the service.
UnsupportedActivityException
PerformException
java.lang.IllegalArgumentException - If the argument is null.
ServerException
AuthorisationException
ResourceException
public Response perform(RequestComponent component)
throws ActivityException,
AuthorisationException,
ResourceException,
UnsupportedActivityException,
ServerException,
ServiceCommsException,
PerformException
This is a shortcut when the request consists of only one activity.
It is functionally equivalent to:
perform( new ActivityRequest( new Activity[] { activity } ) )
component - Activity to be performed.
Response from the data service
containing the status of the request
and any output results.
PerformException - If there is a problem at the service
that prevents the request from
starting to process.
ActivityException - If an activity produces an error when
executed at the service, causing the
request to fail.
ServiceCommsException - If there was an error communicating with
the service.
PerformException
java.lang.IllegalArgumentException - If the argument is null.
AuthorisationException
ResourceException
UnsupportedActivityException
ServerException
public RequestStatus getStatus()
throws ServiceCommsException,
ResourceException,
AuthorisationException
ServiceCommsException - If there was an error communicating with
the service.
ResourceException
AuthorisationException
public void pollUntilRequestCompleted(int pollInterval)
throws AuthorisationException,
RequestStatusException,
ResourceException,
ServiceCommsException,
java.lang.IllegalArgumentException
RequestStatusException
is thrown.
pollInterval - time (in milliseconds) between polls
RequestStatusException - If the status shows that the requent is
not progressing smoothly.
ServiceCommsException - If there was an error communicating with
the service.
java.lang.IllegalArgumentException - If the poll internal less than or
equal to 0.
AuthorisationException
ResourceException
public void pollUntilRequestCompleted(int pollInterval,
int timeoutPeriod)
throws RequestStatusException,
ResourceException,
ServiceCommsException,
java.lang.IllegalArgumentException,
AuthorisationException
If at any time the status indicates that the request is not
progressing smoothly a RequestStatusException
is thrown.
If the status has not reached COMPLETED within the specififed
timeout period a RequestStatusException is thrown.
This method does not timeout. It will only terminate when the status showns the request is completed or in error, or when an error occurs contacting the service.
pollInterval - time (in milliseconds) between pollstimeoutPeriod - time (in millisconds) to wait before giving up
RequestStatusException - If the status shows that the requent is
not progressing smoothly.
ServiceCommsException - If there was an error communicating with
the service.
java.lang.IllegalArgumentException - If the poll internal is less than or
equal to 0.
ResourceException
AuthorisationException
public DataResourceInfo getDataResourceInfo()
throws ServiceCommsException,
ResourceException,
AuthorisationException
ServiceCommsException - If there was an error communicating with the
service.
DataFormatException - If the property returned by the service did not
have the expected format
ResourceException
AuthorisationException
public java.lang.String[] getSupportedActivities()
throws ServiceCommsException,
ResourceException,
AuthorisationException
ServiceCommsException - If there was an error communicating with the
service.
DataFormatException - If the property returned by the service did not
have the expected format
ResourceException
AuthorisationException
public ActivityMetaData getActivityMetaData(java.lang.String activityName)
throws ServiceCommsException,
ResourceException,
AuthorisationException
activityName - the name of a supported activity
ServiceCommsException
ResourceException
AuthorisationException
public void close()
throws ServiceCommsException,
ServiceTerminationException
The method will destroy an OGSI (GT3) Data Service. It will do nothing on other platforms.
ServiceCommsException - If there was a problem accessing the service
ServiceTerminationException - If there was a problem when trying to terminate the service
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||