SRBWriter
org.srb.SRBWriter

SRBWriter/StreamPut is a Kepler Actor which has a functionality similar to the SRB command namely "Sput".However SRBWriter actor uploads data to the SRB with a streaming process by writing a byte of arrays to the SRB remote file instead of a parallel upload. 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 SRBWriter 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 remode SRB file path and creates a SRBRandomAccessFile stream. The bytes of array taken in as input are further written to the stream in a loop.

Actor Input: Accepts a reference to the SRB files system, an SRB remote file name and a sequence of bytes array as input.

Actor Output: The SRBStreamPut actor sends a trigger once its done writing the byte arrays to the remote file on the SRB.

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: SRBWriter.java,v 1.11 2006/05/01 17:50:55 mangal Exp $


SRBFileSystem
Connection reference

remoteFileName
The SRB file to be written

input
Input. Array of bytes.

trigger
The trigger port.