SmartFrog 3.10.000

org.smartfrog.services.os.runshell
Interface RunShell

All Superinterfaces:
java.rmi.Remote
All Known Subinterfaces:
RunJava
All Known Implementing Classes:
RunJavaImpl, RunShellImpl

public interface RunShell
extends java.rmi.Remote

Defines the interface for RunShellScripts component. It defines the variables and utlity methods for executing the commands.


Field Summary
static java.lang.String varCMDs
          String for commands.
static java.lang.String varDelayBetweenCmds
          Delay between commands.
static java.lang.String varEnvProp
          String for env properties.
static java.lang.String varErrorMsgTo
          Object that implements org.smartfrog.services.display.PrintMsgInt /sfServices.sfDisplay uses it.
static java.lang.String varErrorStreamTo
          Object that implements org.smartfrog.services.os.runCmd.OutputStreamInt.
static java.lang.String varExitCmd
          String for exit command .
static java.lang.String varExitValue
          our exit code
static java.lang.String varLineReturn
          LineReturn.
static java.lang.String varLogger
          Level log.
static java.lang.String varOutputMsgTo
          Output message to.
static java.lang.String varOutputStreamTo
          Object that implements org.smartfrog.services.display.PrintErrMsgInt /sfServices.sfDisplay uses it.
static java.lang.String varPrintStack
          Print Stack.
static java.lang.String varSFProcessId
          String for process id.
static java.lang.String varSFProcessName
          String for process name.
static java.lang.String varSFWorkDir
          ProcessWorkingDirectory.
static java.lang.String varShellArguments
          Vector of strings for arguments.
static java.lang.String varShellCommand
          String for shell command.
static java.lang.String varShouldDetach
          Should the batch be done step by step?.
static java.lang.String varShouldTerminate
           
static java.lang.String varStatus
          status attribute; runtime
static java.lang.String varTerminateOnFailure
          terminate on failure
static java.lang.String varUseExitCmd
          String for exit command.
static java.lang.String varWaitSignalGoAhead
          Object that implements org.smartfrog.services.os.runCmd.InfoStreamInt.
 
Method Summary
 void execBatch(java.util.Vector cmds)
          Executes the batch of commands.
 void execCmd(java.lang.String cmd)
          Executes the given command.
 

Field Detail

varSFProcessId

static final java.lang.String varSFProcessId
String for process id.

See Also:
Constant Field Values

varSFProcessName

static final java.lang.String varSFProcessName
String for process name.

See Also:
Constant Field Values

varShellCommand

static final java.lang.String varShellCommand
String for shell command.

See Also:
Constant Field Values

varCMDs

static final java.lang.String varCMDs
String for commands. They could be Strings or Vectors of Strings.

See Also:
Constant Field Values

varExitCmd

static final java.lang.String varExitCmd
String for exit command . They could be Strings or Vectors of Strings.

See Also:
Constant Field Values

varUseExitCmd

static final java.lang.String varUseExitCmd
String for exit command. Should I use exitCmd at the end of the script?

See Also:
Constant Field Values

varEnvProp

static final java.lang.String varEnvProp
String for env properties. They could be Strings or Vectors of Strings.

See Also:
Constant Field Values

varShellArguments

static final java.lang.String varShellArguments
Vector of strings for arguments.

See Also:
Constant Field Values

varSFWorkDir

static final java.lang.String varSFWorkDir
ProcessWorkingDirectory.

See Also:
Constant Field Values

varLineReturn

static final java.lang.String varLineReturn
LineReturn.

See Also:
Constant Field Values

varDelayBetweenCmds

static final java.lang.String varDelayBetweenCmds
Delay between commands.

See Also:
Constant Field Values

varOutputMsgTo

static final java.lang.String varOutputMsgTo
Output message to.

See Also:
Constant Field Values

varErrorMsgTo

static final java.lang.String varErrorMsgTo
Object that implements org.smartfrog.services.display.PrintMsgInt /sfServices.sfDisplay uses it.

See Also:
Constant Field Values

varOutputStreamTo

static final java.lang.String varOutputStreamTo
Object that implements org.smartfrog.services.display.PrintErrMsgInt /sfServices.sfDisplay uses it.

See Also:
Constant Field Values

varErrorStreamTo

static final java.lang.String varErrorStreamTo
Object that implements org.smartfrog.services.os.runCmd.OutputStreamInt.

See Also:
Constant Field Values

varWaitSignalGoAhead

static final java.lang.String varWaitSignalGoAhead
Object that implements org.smartfrog.services.os.runCmd.InfoStreamInt.

See Also:
Constant Field Values

varShouldDetach

static final java.lang.String varShouldDetach
Should the batch be done step by step?. This indicates if the process should detach when the spanned shell finishes and before terminating the component

See Also:
Constant Field Values

varShouldTerminate

static final java.lang.String varShouldTerminate
See Also:
Constant Field Values

varLogger

static final java.lang.String varLogger
Level log.

See Also:
Constant Field Values

varPrintStack

static final java.lang.String varPrintStack
Print Stack.

See Also:
Constant Field Values

varStatus

static final java.lang.String varStatus
status attribute; runtime

See Also:
Constant Field Values

varExitValue

static final java.lang.String varExitValue
our exit code

See Also:
Constant Field Values

varTerminateOnFailure

static final java.lang.String varTerminateOnFailure
terminate on failure

See Also:
Constant Field Values
Method Detail

execCmd

void execCmd(java.lang.String cmd)
             throws java.rmi.RemoteException
Executes the given command.

Parameters:
cmd - command to be exceuted
Throws:
java.rmi.RemoteException - In case of network/rmi error

execBatch

void execBatch(java.util.Vector cmds)
               throws java.rmi.RemoteException
Executes the batch of commands.

Parameters:
cmds - vector of commands to be executed
Throws:
java.rmi.RemoteException - In case of network/rmi error

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP