SRBProxyCommand
org.srb.SRBProxyCommand

SProxyCommand is a Kepler Actor which has a functionality similar to the SRB command namely "Spcommand". Spcommand performs the remote execution of arbitrary commands (executables) installed in a specific predefined directory on the remote host. SProxyCommand actor executes proxy commands on the SRB. 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 SProxyCommand 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 command port and parameters to be executed as input from the user.The arguments to the command are take in as input and implemented as a multi/input port to support more than one argument. It concatanates the inputs in all the channels.

Actor Input: Accepts a reference to the SRB files system, command and arguments to be executed as well as the outputfile name (optional)

Actor Output: Outputs the result of execution of the proxy command as well as an outputfilehandle (if the outfile path exists)

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


SRBFileSystem
pointer to the SRB file system.

command
command port to be executed.

outputFileName
The output file name is set by previous processes.

arguments
The arguments to the command. Implemented as a multi/input port to support more than one argument. It concatanates the inputs in all the channels.

trigger
The trigger port.

outfileHandle
The output file path, if exists.

output
The result stream of the command.



commandParameter
command parameter to be executed.

outputFile
Filled in if the user wants the command to output to a file.

outputLineByLine
If selected, broadcasts the output of the command line by line.

hasTrigger
Unhide the trigger port when this parameter is true. This Parameter is type of boolean. NOTE: in fact, user can use the port configuration window to hide or unhide a port. This paremeter is here to provide a more intuitive interface for this actor.