|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.client.toolkit.wsrf.WSRFDataTransport
Wrapper for the DataTransport operations
| Constructor Summary | |
WSRFDataTransport(java.net.URL url,
ResourceID id,
java.lang.String streamID)
|
|
| Method Summary | |
java.lang.Object |
getBlock()
Gets one block from the complete data set from the DT output stream. |
java.net.URL |
getDataTransportURL()
Obtain the URL of the data service implementing the data transport interface |
java.lang.Object |
getFully()
Gets the entire data set from the Data Transport output stream in one operation. |
java.lang.Object |
getNBlocks(int numberOfBlocks)
Gets a number of blocks from the complete data set from the DT output stream as a single block. |
ResourceID |
getResourceID()
Obtain the resource ID of the resource this service is interacting with |
java.lang.String |
getStreamID()
Get the stream ID |
boolean |
putBlock(java.lang.Object data)
Puts one block from a larger data set in to the DT input stream. |
boolean |
putClosingBlock()
Signals to the DT input stream that all blocks have been sent, so processing at the data service can be completed. |
boolean |
putFully(java.lang.Object data)
Puts the entire data set in to the DT input stream in one operation. |
void |
setResourceID(ResourceID id)
Set the resource ID |
void |
setStreamID(java.lang.String streamID)
Set the stream ID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WSRFDataTransport(java.net.URL url,
ResourceID id,
java.lang.String streamID)
| Method Detail |
public void setStreamID(java.lang.String streamID)
streamID - public java.lang.String getStreamID()
getStreamID in interface DataTransportpublic void setResourceID(ResourceID id)
id - public java.net.URL getDataTransportURL()
DataTransport
getDataTransportURL in interface DataTransport
public java.lang.Object getFully()
throws AuthorisationException,
ServiceCommsException,
ServerException
DataTransport
getFully in interface DataTransportServiceCommsException - If there is a problem communicating with the data service
ServerException
AuthorisationException
public java.lang.Object getNBlocks(int numberOfBlocks)
throws DataFormatException,
ServiceCommsException
DataTransportnull if there are no
more blocks to retrieve.
getNBlocks in interface DataTransportnumberOfBlocks - The number of blocks to fetch from the DT output stream at once. These blocks
will be amalgamated into a single block
null if there are no more blocks to retrieve
ServiceCommsException - If there is a problem communicating with the service.
DataFormatException - If there is a problem with the data.
public java.lang.Object getBlock()
throws AuthorisationException,
ResourceException,
ServiceCommsException,
ServerException
DataTransportnull if there are
no more blocks to retrieve.
getBlock in interface DataTransportnull if there are no more blocks to retrieve
ServerException - If there is a problem at the server
AuthorisationException
ServiceCommsException - If there is a problem communicating with the service.
ResourceException
public boolean putFully(java.lang.Object data)
throws AuthorisationException,
ResourceException,
ServiceCommsException,
ServerException
DataTransport
putFully in interface DataTransportdata - The data set to put in to the DataTransport input stream
ResourceException
AuthorisationException
ServiceCommsException - If there is a problem communicating with the DataTransport input stream
ServerException
public boolean putBlock(java.lang.Object data)
throws AuthorisationException,
ResourceException,
ServiceCommsException,
ServerException
DataTransportputClosingBlock method should be called to signal to
the data service that all the data has been sent.
putBlock in interface DataTransportdata - The block to put in to the DataTransport input stream
ResourceException
AuthorisationException
ServiceCommsException - If there is a problem communicating with the DataTransport input stream
ServerException
public boolean putClosingBlock()
throws AuthorisationException,
ResourceException,
ServiceCommsException,
ServerException
DataTransportputClosingBlock has been
called, the putBlock method should no longer be used.
putClosingBlock in interface DataTransportServiceCommsException - If there is a problem communicating with the DataTransport input stream
ServerException
AuthorisationException
ResourceExceptionpublic ResourceID getResourceID()
DataTransport
getResourceID in interface DataTransport
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||