|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for data service proxies that provides the data transport operations of a data service.
Method Summary | |
java.lang.Object |
getBlock() Gets a single block of data from the output stream of a data service resource. |
java.net.URL |
getDataTransportURL() Obtain the URL of the data service. |
java.lang.Object |
getFully() Gets an entire data set from the output stream of a data service resource in one go. |
java.lang.Object |
getNBlocks(int numberOfBlocks) Gets an number of blocks of data from the output stream of a data service resource in one go. |
ResourceID |
getResourceID() Gets the default resource. |
SessionStreamID |
getSessionStreamID() Gets the session stream ID - the session and stream of that session exposed by the data service resource of interest. |
void |
putBlock(java.lang.Object data) Puts one block of data onto a data service resource input stream. |
void |
putClosingBlock() Inform a data service resource that it can close an input stream as all data has been forwarded. |
void |
putFully(java.lang.Object data) Puts an entire data set onto a data service resource input stream in one go. |
void |
setConnectionProperty(ConnectionProperty property) Configure the connection with a property. |
void |
setResourceID(ResourceID resourceID) Sets the default resource. |
void |
setSessionStreamID(SessionStreamID streamID) Sets the session stream ID - the session and stream of that session exposed by the data service resource of interest. |
Method Detail |
public java.lang.Object getFully() throws ServerException, AuthorisationException, RequestException, ResourceUnknownException, ResourceBusyException, ServiceCommsException
RequestException
- If there is a problem with the client's request e.g there is no such session.ResourceBusyException
- If the resource is busy.ResourceUnknownException
- If the resource is unknown to the service.AuthorisationException
- If the client is not authorised to access the service, resource, session or stream.ServerException
- If there was an error server-side.ServiceCommsException
- If there was an error communicating with the service.public java.lang.Object getNBlocks(int numberOfBlocks) throws ServerException, AuthorisationException, RequestException, ResourceUnknownException, ResourceBusyException, ServiceCommsException
numberOfBlocks
- Number of blocks to get.ServiceConstants.NO_MORE_DATA
if there is no more data to retrieve.RequestException
- If there is a problem with the client's request e.g there is no such session.ResourceBusyException
- If the resource is busy.ResourceUnknownException
- If the resource is unknown to the service.AuthorisationException
- If the client is not authorised to access the service, resource, session or stream.ServerException
- If there was an error server-side.ServiceCommsException
- If there was an error communicating with the service.public java.lang.Object getBlock() throws ServerException, AuthorisationException, RequestException, ResourceUnknownException, ResourceBusyException, ServiceCommsException
ServiceConstants.NO_MORE_DATA
if there is no more data to retrieve.RequestException
- If there is a problem with the client's request e.g there is no such session.ResourceBusyException
- If the resource is busy.ResourceUnknownException
- If the resource is unknown to the service.AuthorisationException
- If the client is not authorised to access the service, resource, session or stream.ServerException
- If there was an error server-side.ServiceCommsException
- If there was an error communicating with the service.public void putFully(java.lang.Object data) throws ServerException, AuthorisationException, RequestException, ResourceUnknownException, ResourceBusyException, ServiceCommsException
data
- The complete set of data.RequestException
- if there is a problem with the client's request e.g there is no such session.ResourceBusyException
- if the resource is busy.ResourceUnknownException
- If the resource is unknown to the service.AuthorisationException
- If the client is not authorised to access the service, resource, session or stream.ServerException
- If there was an error server-side.ServiceCommsException
- If there was an error communicating with the service.public void putBlock(java.lang.Object data) throws ServerException, AuthorisationException, RequestException, ResourceUnknownException, ResourceBusyException, ServiceCommsException
putClosingBlock
method should be called to signal to the data service resource that all the data has been forwarded.
data
- Block of data.RequestException
- if there is a problem with the client's request e.g there is no such session.ResourceBusyException
- if the resource is busy.ResourceUnknownException
- If the resource is unknown to the service.AuthorisationException
- If the client is not authorised to access the service, resource, session or stream.ServerException
- If there was an error server-side.ServiceCommsException
- If there was an error communicating with the service.public void putClosingBlock() throws ServerException, AuthorisationException, RequestException, ResourceUnknownException, ResourceBusyException, ServiceCommsException
putBlock
method should no longer be called.
RequestException
- if there is a problem with the client's request e.g there is no such session.ResourceBusyException
- if the resource is busy.ResourceUnknownException
- If the resource is unknown to the service.AuthorisationException
- If the client is not authorised to access the service, resource, session or stream.ServerException
- If there was an error server-side.ServiceCommsException
- If there was an error communicating with the service.public java.net.URL getDataTransportURL()
public SessionStreamID getSessionStreamID()
public void setSessionStreamID(SessionStreamID streamID)
streamID
- Session stream identifierpublic ResourceID getResourceID()
public void setResourceID(ResourceID resourceID)
resourceID
- Resource IDpublic void setConnectionProperty(ConnectionProperty property)
property
- A connection propertyjava.lang.IllegalArgumentException
- if the property parameter is null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |