
SRBReader |
org.srb.SRBReader |
SRBReader/StreamGet is a Kepler Actor which has a functionality similar to the SRB command
namely "Sget".However SRBReader actor downloads data from the SRB remote file with a streaming process as a byte of
arrays instead of a parallel get.
The following actor expects as input a reference to the SRB file system. This reference connection
is obtained via the SRBConnect Actor in Kepler. See SRBConnect & its documentation.
The file reference system is created with a unique SRB user account and with this connection
reference as input the SRBReader actor is able to gain access to the SRB file space.
Once an alive SRB file connection system has been established the actor gets the remote SRB file path and
creates a SRBRandomAccessFile stream. The contents of file are broadcasted as a sequence of bytes of arrays, after
reading from the stream in a loop.
Actor Input: Accepts a reference to the SRB files system,
an SRB remote file name as input.
Actor Output: The SRBStreamGet
actor outputs the content of the SRB remote file a sequence of byte arrays. Also outputs
a endofFile value once end of file has been reached and no more bytes are to be read.
The following actor accesses SRB file reference system and SRB file space with the SRB Jargon API
provided. The JARGON is a pure API for developing programs with a data grid interface and I/O for
SRB file systems.
Further information on SRB
Author(s): Bing Zhu & Efrat Jaeger
Version:$Id: SRBReader.java,v 1.9 2006/05/01 17:50:55 mangal Exp $
SRBFileSystem
Connection reference
output
Output. Array of bytes.
remoteFileName
The SRB file to be read.
endOfFile
End of file when reached, outputs true