SRBAddMD
org.srb.SRBAddMD

SRBAddMD is a Kepler Actor which adds user defined metadeta to an SRB dataset or collection. When ingesting metadata, only equal operator is used. 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 SRBAddMD 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/directory and the attribute value pair conditions defining the metadata. If the file/directory exists the conditions are added via jargon API methods to the SRB file or directory.

Actor Input: Accepts a reference to the SRB files system, an SRB remote file/directory path and a list of attribute value pairs.

Sample Attribute Value pairs : "a 5","b 10","c abc"

The above is a string array of 3 conditions(a,b,c) and their values to be added to the SRB file/dir metadata.

Actor Output: Outputs an exit status.The exit status gives a message of "success" or appropriate error to indicate the status of adding metadata process.

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): Efrat Jaeger
Version:$Id: SRBAddMD.java,v 1.11 2006/05/01 17:50:55 mangal Exp $


SRBFileSystem
pointer to the SRB file system.

srbFilePath
Path to SRB file.

conditions
{"att val"}

trigger
An input trigger.