unsw.cse.mica.runner
Class ProcessSettings

java.lang.Object
  extended by unsw.cse.mica.runner.ProcessSettings
Direct Known Subclasses:
AgentSettings, BlackboardSettings

public abstract class ProcessSettings
extends java.lang.Object

Each child process is specified by a ProcessSettings object. This encapsulates the user-definable information that can be specified per-process.

Author:
jhw

Field Summary
static boolean DEFAULT_CATCH
           
static java.lang.String DEFAULT_HOME
           
static java.lang.String DEFAULT_JAVA
           
static java.lang.String DEFAULT_LOG_DIR
           
static int DEFAULT_PORT
           
static java.lang.String DEFAULT_RESTART
           
static java.lang.String DEFAULT_TRANSPORT_CONNECTION
           
static java.lang.String DEFAULT_TRANSPORT_PROTOCOL
           
static java.lang.String DEFAULT_TYPE_PATH
           
static java.lang.String ELEMENT_CATCH
           
static java.lang.String ELEMENT_CLASSPATH
           
static java.lang.String ELEMENT_DEBUG
           
static java.lang.String ELEMENT_HOME
           
static java.lang.String ELEMENT_JAVA
           
static java.lang.String ELEMENT_KEYSTORE
           
static java.lang.String ELEMENT_LIBPATH
           
static java.lang.String ELEMENT_PORT
           
static java.lang.String ELEMENT_RESTART
           
static java.lang.String ELEMENT_TRANSPORT
           
static java.lang.String ELEMENT_TYPE_PATH
           
static java.lang.String ELEMENT_VMARG
           
static java.lang.String PARAM_CATCH_FALSE
           
static java.lang.String PARAM_CATCH_TRUE
           
static java.lang.String PARAM_DEBUG
           
static java.lang.String PARAM_HOME
           
static java.lang.String PARAM_PORT
           
static java.lang.String PARAM_TRANSPORT_CONNECTION
           
static java.lang.String PARAM_TRANSPORT_PASSWORD
           
static java.lang.String PARAM_TRANSPORT_PROTOCOL
           
static java.lang.String PARAM_TYPE_PATH
           
static java.lang.String RESTART_AUTO
           
static java.lang.String RESTART_MANUAL
           
static java.lang.String RESTART_OFF
          What do do when an agent terminates unexpectedly (if it was terminated internally rather than being explicitly shutdown by the runner) Legal Values are: - "off" does nothing - "manual" informs the usr via a dialog box that the agent has terminates and queries whether or not to restart - "auto" does an automatic restart
 
Constructor Summary
ProcessSettings()
           
ProcessSettings(ProcessSettings settings)
           
 
Method Summary
 void addExecArgs(java.util.ArrayList cmds)
           
 void addParamArgs(java.util.ArrayList cmds)
           
 boolean getCatchExceptions()
           
 java.util.ArrayList getClassPaths()
           
 int getDebug()
           
 java.lang.String getHome()
           
 java.lang.String getJava()
           
 java.lang.String getKeyStore()
           
 java.lang.String getKeyStorePassword()
           
 java.util.ArrayList getLibraryPaths()
           
 java.lang.String getLogDir()
           
 int getPort()
           
 java.lang.String getRestart()
           
 java.lang.String getTransportConnection()
           
 java.lang.String getTransportPassword()
           
 java.lang.String getTransportProtocol()
           
 java.lang.String getTypePath()
           
 java.util.List getVMArgs()
           
 boolean process(org.w3c.dom.Element element, java.lang.String obj)
          return true if handled, false otherwise
 void processArgs(java.util.ArrayList args)
           
 void setPort(int port)
          Needed for the old-style host / port configuration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_JAVA

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

ELEMENT_VMARG

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

ELEMENT_LIBPATH

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

ELEMENT_CLASSPATH

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

ELEMENT_HOME

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

ELEMENT_PORT

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

ELEMENT_TRANSPORT

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

ELEMENT_KEYSTORE

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

ELEMENT_DEBUG

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

ELEMENT_TYPE_PATH

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

ELEMENT_CATCH

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

ELEMENT_RESTART

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

RESTART_OFF

public static final java.lang.String RESTART_OFF
What do do when an agent terminates unexpectedly (if it was terminated internally rather than being explicitly shutdown by the runner) Legal Values are: - "off" does nothing - "manual" informs the usr via a dialog box that the agent has terminates and queries whether or not to restart - "auto" does an automatic restart

See Also:
Constant Field Values

RESTART_MANUAL

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

RESTART_AUTO

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

DEFAULT_HOME

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

DEFAULT_JAVA

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

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_CATCH

public static final boolean DEFAULT_CATCH
See Also:
Constant Field Values

DEFAULT_LOG_DIR

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

DEFAULT_RESTART

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

DEFAULT_TRANSPORT_PROTOCOL

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

DEFAULT_TRANSPORT_CONNECTION

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

DEFAULT_TYPE_PATH

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

PARAM_HOME

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

PARAM_PORT

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

PARAM_TRANSPORT_PROTOCOL

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

PARAM_TRANSPORT_CONNECTION

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

PARAM_TRANSPORT_PASSWORD

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

PARAM_DEBUG

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

PARAM_TYPE_PATH

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

PARAM_CATCH_TRUE

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

PARAM_CATCH_FALSE

public static final java.lang.String PARAM_CATCH_FALSE
See Also:
Constant Field Values
Constructor Detail

ProcessSettings

public ProcessSettings()

ProcessSettings

public ProcessSettings(ProcessSettings settings)
Method Detail

getJava

public java.lang.String getJava()

getVMArgs

public java.util.List getVMArgs()

getLibraryPaths

public java.util.ArrayList getLibraryPaths()

getClassPaths

public java.util.ArrayList getClassPaths()

getHome

public java.lang.String getHome()

getPort

public int getPort()

getTransportProtocol

public java.lang.String getTransportProtocol()

getTransportConnection

public java.lang.String getTransportConnection()

getTransportPassword

public java.lang.String getTransportPassword()

getKeyStore

public java.lang.String getKeyStore()

getKeyStorePassword

public java.lang.String getKeyStorePassword()

getDebug

public int getDebug()

getTypePath

public java.lang.String getTypePath()

getCatchExceptions

public boolean getCatchExceptions()

getLogDir

public java.lang.String getLogDir()

getRestart

public java.lang.String getRestart()

process

public boolean process(org.w3c.dom.Element element,
                       java.lang.String obj)
return true if handled, false otherwise

Parameters:
element -

setPort

public void setPort(int port)
Needed for the old-style host / port configuration


addExecArgs

public void addExecArgs(java.util.ArrayList cmds)

addParamArgs

public void addParamArgs(java.util.ArrayList cmds)

processArgs

public void processArgs(java.util.ArrayList args)