| java.lang.Object com.sun.management.VMOption
VMOption | public class VMOption (Code) | | Information about a VM option including its value and
where the value came from which is referred as its
VMOption.Origin origin .
Each VM option has a default value. A VM option can
be set at VM creation time typically as a command line
argument to the launcher or an argument passed to the
VM created using the JNI invocation interface.
In addition, a VM option may be set via an environment
variable or a configuration file. A VM option can also
be set dynamically via a management interface after
the VM was started.
A VMOption contains the value of a VM option
and the origin of that value at the time this VMOption
object was constructed. The value of the VM option
may be changed after the VMOption object was constructed,
See Also:
* Java Virtual Machine author: Mandy Chung since: 1.6 |
Inner Class :public enum Origin | |
Constructor Summary | |
public | VMOption(String name, String value, boolean writeable, Origin origin) Constructs a VMOption. |
Method Summary | |
public static VMOption | from(CompositeData cd) Returns a VMOption object represented by the
given CompositeData. | public String | getName() Returns the name of this VM option. | public Origin | getOrigin() Returns the origin of the value of this VM option. | public String | getValue() Returns the value of this VM option at the time when
this VMOption was created. | public boolean | isWriteable() Tests if this VM option is writeable. | public String | toString() |
VMOption | public VMOption(String name, String value, boolean writeable, Origin origin)(Code) | | Constructs a VMOption.
Parameters: name - Name of a VM option. Parameters: value - Value of a VM option. Parameters: writeable - true if a VM option can be set dynamically,or false otherwise. Parameters: origin - where the value of a VM option came from. throws: NullPointerException - if the name or value is null |
from | public static VMOption from(CompositeData cd)(Code) | | Returns a VMOption object represented by the
given CompositeData. The given CompositeData
must contain the following attributes:
Attribute Name |
Type |
name |
java.lang.String |
value |
java.lang.String |
origin |
java.lang.String |
writeable |
java.lang.Boolean |
Parameters: cd - CompositeData representing a VMOption throws: IllegalArgumentException - if cd does notrepresent a VMOption with the attributes describedabove. a VMOption object represented by cdif cd is not null;null otherwise. |
getName | public String getName()(Code) | | Returns the name of this VM option.
the name of this VM option. |
getOrigin | public Origin getOrigin()(Code) | | Returns the origin of the value of this VM option. That is,
where the value of this VM option came from.
where the value of this VM option came from. |
getValue | public String getValue()(Code) | | Returns the value of this VM option at the time when
this VMOption was created. The value could have been changed.
the value of the VM option at the time whenthis VMOption was created. |
isWriteable | public boolean isWriteable()(Code) | | Tests if this VM option is writeable. If this VM option is writeable,
it can be set by the
HotSpotDiagnosticMXBean.setVMOptionHotSpotDiagnosticMXBean.setVMOption method.
true if this VM option is writeable; falseotherwise. |
|
|