| java.lang.Object org.cougaar.tools.server.ProcessDescription
ProcessDescription | final public class ProcessDescription implements java.io.Serializable(Code) | | Immutable description for a remote process.
|
Method Summary | |
public boolean | equals(Object o) | public List | getCommandLineArguments() Get the command-line arguments, which is an unmodifiable
list of non-null Strings. | public String | getGroup() Get the optional "group" identifier for this process. | public Map | getJavaProperties() Get the java properties, which is an unmodifiable map
of (String, String) pairs.
All properties fall into three groups:
- "env.*" process environment properties
(e.g.
| public String | getName() Get the "name" identifier for this process. | public int | hashCode() | public String | toString() |
getCommandLineArguments | public List getCommandLineArguments()(Code) | | Get the command-line arguments, which is an unmodifiable
list of non-null Strings.
These arguments are in addition to the optional
java-properties.
|
getGroup | public String getGroup()(Code) | | Get the optional "group" identifier for this process.
This can be used to tag multiple processes into logical
groups.
|
getJavaProperties | public Map getJavaProperties()(Code) | | Get the java properties, which is an unmodifiable map
of (String, String) pairs.
All properties fall into three groups:
- "env.*" process environment properties
(e.g. "env.DISPLAY=..")
- "java.*" java options
(e.g. "java.class.path=..")
- "*" for all other "-D" system properties
(e.g. "foo=bar")
If the value is null then this property is
to be removed from the default list of properties
(if one is specified on the server).
Double-prefixes ("env.env.*" and "java.java.*") are
stripped and converted to "-D" properties. For example,
"java.java.duck=quack" is converted to "-Djava.duck=quack".
Some properties of note:
- "java.jar=" specify an java executable jar, this
property defaults to empty (no executable jar)
- "java.class.name=" to set the classname, which
is required if the "java.jar=.." is not specified.
If both the classname and jar are specified then
the classname is ignored.
- "java.class.path=" specify the java classpath -- note
that this *doesn't* adopt the server's classpath!
If the "java.jar=.." is specified then this property
is ignored. If both this property and "java.jar=.."
are not specified then this property defaults to the
system-default classpath
- "java.jvm.program=" to set the java executable
(defaults to "${java.home}/bin/java")
- "java.jvm.mode=" to set the JVM mode
("classic", "hotspot", "client", or "server");
defaults to "hotspot"
- "java.jvm.green=" to add "-green" for green threads,
defaults to false.
- "java.Xbootclasspath[/p|/a]=" to set the bootclasspath.
"java.Xbootclasspath/p=" is used to prefix the default
bootclasspath, or "java.Xbootclasspath/a=" to append
- "java.heap.min=" to specify the minimum heap size,
such as "100m" for 100 megabytes; defaults to a
system-specify value
- "java.heap.max=" to specify the maximum heap size,
such as "300m" for 300 megabytes; defaults to a
system-specify value
- "java.stack.size=" to specify the Java thread stack size,
such as "10m" for 10 megabytes; defaults to a
system-specify value
- "java.enable.assertions[=(|true|false|package|classname)]
to turn on JDK 1.4 assertion checking (-ea)
- "java.disable.assertions[=(|true|false|package|classname)]
to turn off JDK 1.4 assertion checking (-da)
- "java.enable.system.assertions[=(|true|false])]
to turn on JDK 1.4 system assertion checking (-esa)
- "java.disable.system.assertions[=(|true|false])]
to turn off JDK 1.4 system assertion checking (-dsa)
- "java.*" for all other "-*" properties, such as
"java.Xnoclassgc=" for "-Xnoclassgc"
|
getName | public String getName()(Code) | | Get the "name" identifier for this process.
All processes must have globally-unique names.
|
hashCode | public int hashCode()(Code) | | |
|
|