SmartFrog 3.10.000

org.smartfrog.services.shellscript
Class Cmd

java.lang.Object
  extended by org.smartfrog.services.shellscript.Cmd
All Implemented Interfaces:
java.io.Serializable

public class Cmd
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static java.lang.String ATR_CMD
          String name for optional attribute.
static java.lang.String ATR_DETACH
          This indicates if the component should detach when the exec finishes.
static java.lang.String ATR_DIR
          String name for optional attribute.
static java.lang.String ATR_ECHO_CMD
          String name for optional attribute.
static java.lang.String ATR_ENVP
          String name for optional attribute.
static java.lang.String ATR_EXIT_ERROR_CMD
          String name for optional attribute.
static java.lang.String ATR_FILTERS_ERR
          String name for optional attribute.
static java.lang.String ATR_FILTERS_OUT
          String name for optional attribute.
static java.lang.String ATR_LINE_SEPARATOR
          String name for optional attribute.
static java.lang.String ATR_RESTART
          This indicates if the component should detach when the exec finishes.
static java.lang.String ATR_TERMINATE
          This indicates if the component should terminate when the exec finishes.
 
Constructor Summary
Cmd()
           
Cmd(ComponentDescription cd)
           
Cmd(java.lang.String[] cmdarray, java.lang.String[] envp, java.io.File dir)
           
 
Method Summary
 boolean detach()
           
 java.lang.String[] getCmdArray()
           
 java.lang.String getEchoCommand()
           
 java.lang.String[] getEnvp()
           
 java.lang.String getExitErrorCommand()
           
 java.io.File getFile()
           
 FilterListener getFilterErrListener()
           
 FilterListener getFilterOutListener()
           
 java.lang.String[] getFiltersErr()
           
 java.lang.String[] getFiltersOut()
           
 java.lang.String getLineSeparator()
           
 boolean restart()
           
 Cmd setCmdArray(java.lang.String[] cmdarray)
           
 Cmd setCmdArray(java.util.Vector cmdarray)
           
 Cmd setDetatch(boolean detatch)
           
 Cmd setEchoCommand(java.lang.String echoCommand)
           
 Cmd setEnvp(java.lang.String[] envp)
           
 Cmd setEnvp(java.util.Vector envp)
           
 Cmd setExitErrorCommand(java.lang.String exitErrorCommand)
           
 Cmd setFile(java.io.File dir)
           
 Cmd setFilterErrListener(FilterListener ferrL, java.lang.String[] filtersErr)
           
 Cmd setFilterOutListener(FilterListener foutL, java.lang.String[] filtersOut)
           
 Cmd setLineSeparator(java.lang.String lineSeparator)
           
 Cmd setRestart(boolean restart)
           
 Cmd setTerminate(boolean terminate)
           
 boolean terminate()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATR_CMD

public static final java.lang.String ATR_CMD
String name for optional attribute. Value "cmd".

See Also:
Constant Field Values

ATR_ENVP

public static final java.lang.String ATR_ENVP
String name for optional attribute. Value "envProperties".

See Also:
Constant Field Values

ATR_DIR

public static final java.lang.String ATR_DIR
String name for optional attribute. Value "dir".

See Also:
Constant Field Values

ATR_LINE_SEPARATOR

public static final java.lang.String ATR_LINE_SEPARATOR
String name for optional attribute. Value "lineSeparator".

See Also:
Constant Field Values

ATR_ECHO_CMD

public static final java.lang.String ATR_ECHO_CMD
String name for optional attribute. Value "echoCmd".

See Also:
Constant Field Values

ATR_EXIT_ERROR_CMD

public static final java.lang.String ATR_EXIT_ERROR_CMD
String name for optional attribute. Value "echoErrorCmd".

See Also:
Constant Field Values

ATR_FILTERS_OUT

public static final java.lang.String ATR_FILTERS_OUT
String name for optional attribute. Value "filtersOut".

See Also:
Constant Field Values

ATR_FILTERS_ERR

public static final java.lang.String ATR_FILTERS_ERR
String name for optional attribute. Value "filtersErr".

See Also:
Constant Field Values

ATR_RESTART

public static final java.lang.String ATR_RESTART
This indicates if the component should detach when the exec finishes. String name for attribute. Value "restart".

See Also:
Constant Field Values

ATR_DETACH

public static final java.lang.String ATR_DETACH
This indicates if the component should detach when the exec finishes. String name for attribute. Value "detach".

See Also:
Constant Field Values

ATR_TERMINATE

public static final java.lang.String ATR_TERMINATE
This indicates if the component should terminate when the exec finishes. String name for attribute. Value "terminate".

See Also:
Constant Field Values
Constructor Detail

Cmd

public Cmd()

Cmd

public Cmd(ComponentDescription cd)
    throws SmartFrogException
Throws:
SmartFrogException

Cmd

public Cmd(java.lang.String[] cmdarray,
           java.lang.String[] envp,
           java.io.File dir)
Method Detail

setCmdArray

public Cmd setCmdArray(java.lang.String[] cmdarray)

setCmdArray

public Cmd setCmdArray(java.util.Vector cmdarray)

setEnvp

public Cmd setEnvp(java.lang.String[] envp)

setEnvp

public Cmd setEnvp(java.util.Vector envp)

setFile

public Cmd setFile(java.io.File dir)

setLineSeparator

public Cmd setLineSeparator(java.lang.String lineSeparator)

setFilterOutListener

public Cmd setFilterOutListener(FilterListener foutL,
                                java.lang.String[] filtersOut)

setFilterErrListener

public Cmd setFilterErrListener(FilterListener ferrL,
                                java.lang.String[] filtersErr)

setEchoCommand

public Cmd setEchoCommand(java.lang.String echoCommand)

setExitErrorCommand

public Cmd setExitErrorCommand(java.lang.String exitErrorCommand)

setRestart

public Cmd setRestart(boolean restart)

setDetatch

public Cmd setDetatch(boolean detatch)

setTerminate

public Cmd setTerminate(boolean terminate)

getCmdArray

public java.lang.String[] getCmdArray()

getEnvp

public java.lang.String[] getEnvp()

getFile

public java.io.File getFile()

getLineSeparator

public java.lang.String getLineSeparator()

getFiltersOut

public java.lang.String[] getFiltersOut()

getFiltersErr

public java.lang.String[] getFiltersErr()

getFilterErrListener

public FilterListener getFilterErrListener()

getFilterOutListener

public FilterListener getFilterOutListener()

getEchoCommand

public java.lang.String getEchoCommand()

getExitErrorCommand

public java.lang.String getExitErrorCommand()

detach

public boolean detach()

terminate

public boolean terminate()

restart

public boolean restart()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

SmartFrog CORE 3.10.000

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