|
Monitoring and Management Interface for the Java Platform | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.management.VMOption
public class VMOption
Information about a VM option including its value and
where the value came from which is referred as its
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,
Nested Class Summary | |
---|---|
static class |
VMOption.Origin
Origin of the value of a VM option. |
Constructor Summary | |
---|---|
VMOption(String name,
String value,
boolean writeable,
VMOption.Origin origin)
Constructs a VMOption. |
Method Summary | |
---|---|
static VMOption |
from(CompositeData cd)
Returns a VMOption object represented by the given CompositeData. |
String |
getName()
Returns the name of this VM option. |
VMOption.Origin |
getOrigin()
Returns the origin of the value of this VM option. |
String |
getValue()
Returns the value of this VM option at the time when this VMOption was created. |
boolean |
isWriteable()
Tests if this VM option is writeable. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VMOption(String name, String value, boolean writeable, VMOption.Origin origin)
name
- Name of a VM option.value
- Value of a VM option.writeable
- true if a VM option can be set dynamically,
or false otherwise.origin
- where the value of a VM option came from.
NullPointerException
- if the name or value is nullMethod Detail |
---|
public String getName()
public String getValue()
public VMOption.Origin getOrigin()
public boolean isWriteable()
HotSpotDiagnosticMXBean.setVMOption
method.
public String toString()
toString
in class Object
public static VMOption from(CompositeData cd)
Attribute Name Type name java.lang.String value java.lang.String origin java.lang.String writeable java.lang.Boolean
cd
- CompositeData representing a VMOption
IllegalArgumentException
- if cd does not
represent a VMOption with the attributes described
above.
|
Monitoring and Management Interface for the Java Platform | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |