jpl.eda.console
Interface JavaProcess

All Superinterfaces:
jpl.eda.util.Documentable, Process, RuntimeProcess
All Known Subinterfaces:
ExecServerProcess, NameServer
All Known Implementing Classes:
ExecServerProcessImpl, jpl.eda.console.JavaProcessImpl, NameServerImpl

public interface JavaProcess
extends RuntimeProcess

An external runtime process that runs with Java.

Author:
Kelly.

Field Summary
static java.lang.String CLASSPATH
          Status key for overridden classpath.
static java.lang.String EXTPATH
          Status key for overridden optional packages.
static java.lang.String JVM
          Status key for overridden JVM.
static java.lang.String JVM_OPTIONS
          Status key for overridden JVM options.
static java.lang.String MAX_HEAP
          Status key for overridden max heap.
static java.lang.String START_HEAP
          Status key for overridden start heap.
static java.lang.String VM_TYPE
          Status key for overridden vm type.
 
Fields inherited from interface jpl.eda.console.Process
ARGV, CLASS_NAME, ENABLED, ENVP, ERR_BUF_SIZE, ERROR, EVENT_ADDRESSES, EXECUTIVE_SERVER, IOR, IS_RUNNING, JAVA, LAUNCH, LIMIT, MIN_TIME, NAME, NAME_SERVER, NATIVE, OUT_BUF_SIZE, OUTPUT, PROPERTIES, RESET_TIME, RESTARTS, SHUTDOWN, START_TIME, TYPE, URL, WAIT_TIME, WEB_SERVER
 
Method Summary
 java.util.Vector getClasspath()
          Get the classpath.
 java.lang.String[] getCommandLineArguments()
          Get my command-line arguments.
 java.util.Vector getExtpath()
          Get the optional package path.
 java.lang.String getJVM()
          Get the Java virtual machine interpreter.
 java.util.Vector getJVMOptions()
          Get the JVM options.
 java.lang.String getMainClass()
          Get my main class.
 int getMaxHeap()
          Get the maximum heap.
 java.util.Properties getProperties()
          Get my properties.
 int getStartHeap()
          Get the starting heap.
 java.lang.String getVMType()
          Get the virtual machine type.
 int setClasspath(java.util.Vector cp)
          Set the classpath.
 int setCommandLineArguments(java.lang.String[] argv)
          Set my command-line arguments.
 int setExtpath(java.util.Vector extpath)
          Set the optional package path.
 int setJVM(java.lang.String jvm)
          Set the Java virtual machine interpreter.
 int setJVMOptions(java.util.Vector options)
          Set the JVM options.
 int setMainClass(java.lang.String className)
          Set my main class.
 int setMaxHeap(int heap)
          Set the maximum heap.
 int setStartHeap(int heap)
          Set the starting heap.
 int setVMType(java.lang.String type)
          Set the virtual machine type.
 
Methods inherited from interface jpl.eda.console.RuntimeProcess
getErrBufSize, getError, getOutBufSize, getOutput, setErrBufSize, setOutBufSize
 
Methods inherited from interface jpl.eda.console.Process
getEventAddresses, getLimit, getMinTime, getName, getResetTime, getStatus, getType, getWaitTime, isEnabled, isRunning, setEnabled, setEventAddresses, setLimit, setMinTime, setName, setParams, setResetTime, setWaitTime, start, stop
 
Methods inherited from interface jpl.eda.util.Documentable
toXML
 

Field Detail

JVM

public static final java.lang.String JVM
Status key for overridden JVM.

See Also:
Constant Field Values

MAX_HEAP

public static final java.lang.String MAX_HEAP
Status key for overridden max heap.

See Also:
Constant Field Values

START_HEAP

public static final java.lang.String START_HEAP
Status key for overridden start heap.

See Also:
Constant Field Values

JVM_OPTIONS

public static final java.lang.String JVM_OPTIONS
Status key for overridden JVM options.

See Also:
Constant Field Values

CLASSPATH

public static final java.lang.String CLASSPATH
Status key for overridden classpath.

See Also:
Constant Field Values

EXTPATH

public static final java.lang.String EXTPATH
Status key for overridden optional packages.

See Also:
Constant Field Values

VM_TYPE

public static final java.lang.String VM_TYPE
Status key for overridden vm type.

See Also:
Constant Field Values
Method Detail

getProperties

public java.util.Properties getProperties()
                                   throws ServerException
Get my properties. My properties are system properties that override any globals in the ServerConfig. Don't forget to call ServerConfig.save() after modifying these.

Returns:
My properties.
Throws:
ServerException - If an error occurs.

getCommandLineArguments

public java.lang.String[] getCommandLineArguments()
                                           throws ServerException
Get my command-line arguments.

Returns:
My command-line arguments.
Throws:
ServerException

setCommandLineArguments

public int setCommandLineArguments(java.lang.String[] argv)
                            throws ServerException
Set my command-line arguments.

Parameters:
argv - My new command-line arguments.
Throws:
ServerException - If an error occurs.

getMainClass

public java.lang.String getMainClass()
                              throws ServerException
Get my main class.

Returns:
The name of my main class.
Throws:
ServerException - If an error occurs.

setMainClass

public int setMainClass(java.lang.String className)
                 throws ServerException
Set my main class.

Parameters:
className - Name of the main class.
Returns:
Zero
Throws:
ServerException - If an error occurs.

getJVM

public java.lang.String getJVM()
                        throws ServerException
Get the Java virtual machine interpreter.

Returns:
The JVM executable.
Throws:
ServerException - If an error occurs.

setJVM

public int setJVM(java.lang.String jvm)
           throws ServerException
Set the Java virtual machine interpreter.

Parameters:
jvm - The JVM executable.
Returns:
Zero
Throws:
ServerException - If an error occurs.

getMaxHeap

public int getMaxHeap()
               throws ServerException
Get the maximum heap.

Returns:
The maximum heap in kilobytes.
Throws:
ServerException

setMaxHeap

public int setMaxHeap(int heap)
               throws ServerException
Set the maximum heap.

Parameters:
heap - The maximum heap in kilobytes.
Returns:
Zero
Throws:
ServerException - If an error occurs.

getStartHeap

public int getStartHeap()
                 throws ServerException
Get the starting heap.

Returns:
The starting heap in kilobytes.
Throws:
ServerException - If an error occurs.

setStartHeap

public int setStartHeap(int heap)
                 throws ServerException
Set the starting heap.

Parameters:
heap - The starting heap in kilobytes.
Returns:
Zero
Throws:
ServerException - If an error occurs.

getJVMOptions

public java.util.Vector getJVMOptions()
                               throws ServerException
Get the JVM options.

Returns:
Any JVM options.
Throws:
ServerException - If an error occurs.

setJVMOptions

public int setJVMOptions(java.util.Vector options)
                  throws ServerException
Set the JVM options.

Parameters:
options - Any JVM options.
Returns:
Zero
Throws:
ServerException - If an error occurs.

getClasspath

public java.util.Vector getClasspath()
                              throws ServerException
Get the classpath.

Returns:
A vector of Strings of directories and jars.
Throws:
ServerException - If an error occurs.

setClasspath

public int setClasspath(java.util.Vector cp)
                 throws ServerException
Set the classpath.

Parameters:
cp - A vector of Strings of directories and jars.
Returns:
Zero
Throws:
ServerException - If an error occurs.

getExtpath

public java.util.Vector getExtpath()
                            throws ServerException
Get the optional package path.

Returns:
A vector of String directories.
Throws:
ServerException - If an error occurs.

setExtpath

public int setExtpath(java.util.Vector extpath)
               throws ServerException
Set the optional package path.

Parameters:
extpath - A vector of String directories.
Returns:
Zero
Throws:
ServerException - If an error occurs.

getVMType

public java.lang.String getVMType()
                           throws ServerException
Get the virtual machine type.

Returns:
The VM type.
Throws:
ServerException - If an error occurs.

setVMType

public int setVMType(java.lang.String type)
              throws ServerException
Set the virtual machine type.

Parameters:
type - The VM type.
Returns:
Zero
Throws:
ServerException - If an error occurs.


Copyright © 1999-2006 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.