SmartFrog 3.10.000

org.smartfrog.services.shellscript
Interface SFExecution

All Known Subinterfaces:
SFProcessExecution, SFScriptExecution
All Known Implementing Classes:
SFProcessExecutionImpl, SFScriptExecutionImpl

public interface SFExecution

Interface that provides the API to the script component, allowing other co-located components to submit script commands. The interface provides for the submission of lines of script and the ability to lock a script component for unique use for a period. This ensures that sequences of script commands will not be interleaved with other script requets to the component. The operational model is asynchronous, in that the execute operation only queues the execute request and does not wait until it is complete. An object implementing the ScriptResult interface is returned, and this can be queried to find if the script has completed and obtain the resultant output, both error and normal. Commands to be executed are passed in as a list the following format. Each element is either a string, in which case it is treated as a command, or a list in which case the command is the space-separated "toString" of its elements.


Field Summary
static java.lang.String ATR_EXEC
          String name for attribute.
static java.lang.String ATR_EXEC_EXIT_CODE
          String name for attribute.
static java.lang.String ATR_EXEC_EXIT_CODES
          Exit codes from execs.
static java.lang.String ATR_NAME
          String name for optional attribute.
static java.lang.String ATR_NUMBER_OF_EXECS
          Number of execs done, 0 = none String name for attribute.
 
Method Summary
 void readConfig()
           
 

Field Detail

ATR_NAME

static final java.lang.String ATR_NAME
String name for optional attribute. Value "name".

See Also:
Constant Field Values

ATR_EXEC

static final java.lang.String ATR_EXEC
String name for attribute. Value "exec".

See Also:
Constant Field Values

ATR_EXEC_EXIT_CODE

static final java.lang.String ATR_EXEC_EXIT_CODE
String name for attribute. Value "execExitCode".

See Also:
Constant Field Values

ATR_NUMBER_OF_EXECS

static final java.lang.String ATR_NUMBER_OF_EXECS
Number of execs done, 0 = none String name for attribute. Value "numberOfExecs".

See Also:
Constant Field Values

ATR_EXEC_EXIT_CODES

static final java.lang.String ATR_EXEC_EXIT_CODES
Exit codes from execs. Postion 0 contains 'numberOfExecs'. String name for attribute. Value "execExitCodes".

See Also:
Constant Field Values
Method Detail

readConfig

void readConfig()
                throws SmartFrogException,
                       java.rmi.RemoteException
Throws:
SmartFrogException
java.rmi.RemoteException

SmartFrog CORE 3.10.000

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