public interface RuntimeMXBean extends PlatformManagedObject
Precisely one instance of this interface will be made available to management clients.
Accessing this MXBean
can be done in one of three ways.
ManagementFactory.newPlatformMXBeanProxy(javax.management.MBeanServerConnection, java.lang.String, java.lang.Class<T>)
method, passing in
"java.lang:type=Runtime" for the value of the second parameter.
Modifier and Type | Method and Description |
---|---|
String |
getBootClassPath()
If bootstrap class loading is supported by the virtual machine, returns a
string containing the full bootstrap class path used by the boot class
loader to locate and load class files.
|
String |
getClassPath()
Returns the class path string used by the system class loader to locate
and load class files.
|
List<String> |
getInputArguments()
Returns a list of all of the input arguments passed to the virtual
machine on start-up.
|
String |
getLibraryPath()
Returns the Java library path that will be used by the virtual machine to
locate and load libraries.
|
String |
getManagementSpecVersion()
Returns a string containing the management interface specification
version that the virtual machine meets.
|
String |
getName()
Returns the string name of this virtual machine.
|
String |
getSpecName()
Returns the name of the Java virtual machine specification followed by
this virtual machine.
|
String |
getSpecVendor()
Returns the name of the Java virtual machine specification vendor.
|
String |
getSpecVersion()
Returns the name of the Java virtual machine specification version.
|
long |
getStartTime()
Returns the time, in milliseconds, when the virtual machine was started.
|
Map<String,String> |
getSystemProperties()
Returns a map of the names and values of every system property known to
the virtual machine.
|
long |
getUptime()
Returns the lifetime of the virtual machine in milliseconds.
|
String |
getVmName()
Returns the name of the Java virtual machine implementation.
|
String |
getVmVendor()
Returns the name of the Java virtual machine implementation vendor.
|
String |
getVmVersion()
Returns the version of the Java virtual machine implementation.
|
boolean |
isBootClassPathSupported()
Returns a boolean indication of whether or not the virtual machine
supports a bootstrap class loading mechanism.
|
getObjectName
String getBootClassPath()
An indication of whether or not the virtual machine supports a boot class
loader mechanism can be found from invoking the
isBootClassPathSupported()
method.
UnsupportedOperationException
- if the virtual machine does not support boot class loading.SecurityException
- if there is a security manager in effect and the caller does
not have ManagementPermission
of "monitor".String getClassPath()
System.getProperty(java.lang.String)
supplying the value "java.class.path" for the key.SecurityException
- if there is a security manager in operation and the caller
does not have permission to check system properties.System.getProperty(java.lang.String)
List<String> getInputArguments()
main(String[] args)
method.String getLibraryPath()
System.getProperty(java.lang.String)
supplying the value "java.library.path" for the key.SecurityException
- if there is a security manager in operation and the caller
does not have permission to check system properties.System.getProperty(java.lang.String)
String getManagementSpecVersion()
String getName()
String getSpecName()
System.getProperty(java.lang.String)
supplying the value "java.vm.specification.name" for the key.SecurityException
- if there is a security manager in operation and the caller
does not have permission to check system properties.System.getProperty(java.lang.String)
String getSpecVendor()
System.getProperty(java.lang.String)
supplying the value
"java.vm.specification.vendor" for the key.SecurityException
- if there is a security manager in operation and the caller
does not have permission to check system properties.System.getProperty(java.lang.String)
String getSpecVersion()
System.getProperty(java.lang.String)
supplying the value
"java.vm.specification.version" for the key.SecurityException
- if there is a security manager in operation and the caller
does not have permission to check system properties.System.getProperty(java.lang.String)
long getStartTime()
Map<String,String> getSystemProperties()
SecurityException
- if there is a security manager in operation and the caller
does not have permission to check system properties.long getUptime()
String getVmName()
System.getProperty(java.lang.String)
supplying the value
"java.vm.name" for the key.SecurityException
- if there is a security manager in operation and the caller
does not have permission to check system properties.System.getProperty(java.lang.String)
String getVmVendor()
System.getProperty(java.lang.String)
supplying the value
"java.vm.vendor" for the key.SecurityException
- if there is a security manager in operation and the caller
does not have permission to check system properties.System.getProperty(java.lang.String)
String getVmVersion()
System.getProperty(java.lang.String)
supplying the value
"java.vm.version" for the key.SecurityException
- if there is a security manager in operation and the caller
does not have permission to check system properties.System.getProperty(java.lang.String)
boolean isBootClassPathSupported()
true
if supported, false
otherwise.Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 1993, 2025 IBM Corp. and others.