com.ibm.lang.management
Class RuntimeMXBeanImpl
- java.lang.Object
com.ibm.lang.management.DynamicMXBeanImpl
com.ibm.lang.management.RuntimeMXBeanImpl
All implemented interfaces:
java.lang.management.RuntimeMXBean, javax.management.DynamicMBean
- public final class RuntimeMXBeanImpl
- extends DynamicMXBeanImpl
- implements java.lang.management.RuntimeMXBean
RuntimeMXBean
Since:
1.5
Field Summary
Fields inherited from class com.ibm.lang.management.DynamicMXBeanImpl |
---|
info |
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getBootClassPath()
|
|
getClassPath()
|
|
getInputArguments()
|
|
getLibraryPath()
|
|
getManagementSpecVersion()
|
|
getName()
|
|
getSpecName()
|
|
getSpecVendor()
|
|
getSpecVersion()
|
|
getStartTime()
|
|
getSystemProperties()
|
|
getUptime()
|
|
getVmName()
|
|
getVmVendor()
|
|
getVmVersion()
|
|
isBootClassPathSupported()
|
Methods inherited from class com.ibm.lang.management.DynamicMXBeanImpl |
---|
getAttribute, getAttributes, getMBeanInfo, getPresentAttribute, getPresentOperation, initMBeanInfo, invoke, setAttribute, setAttributes, setMBeanInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail
getBootClassPath
- public java.lang.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.
An indication of whether or not the virtual machine supports a boot class
loader mechanism can be found from invoking the
RuntimeMXBean.isBootClassPathSupported()
method.
Specified by:
getBootClassPath
in interface java.lang.management.RuntimeMXBean
Returns:
the bootstrap classpath with each entry separated by the path
separator character corresponding to the underlying operating
system.
getClassPath
- public java.lang.String getClassPath( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns the class path string used by the system class loader to locate
and load class files. The value is identical to that which would be
obtained from a call to
System.getProperty(java.lang.String)
supplying the value "java.class.path" for the key.
Specified by:
getClassPath
in interface java.lang.management.RuntimeMXBean
Returns:
the system classpath with each entry separated by the path
separator character corresponding to the underlying operating
system.
See Also:
System.getProperty(java.lang.String)
getLibraryPath
- public java.lang.String getLibraryPath( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns the Java library path that will be used by the virtual machine to
locate and load libraries. The value is identical to that which would be
obtained from a call to
System.getProperty(java.lang.String)
supplying the value "java.library.path" for the key.
Specified by:
getLibraryPath
in interface java.lang.management.RuntimeMXBean
Returns:
the Java library path with each entry separated by the path
separator character corresponding to the underlying operating
system.
See Also:
System.getProperty(java.lang.String)
getManagementSpecVersion
- public java.lang.String getManagementSpecVersion( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns a string containing the management interface specification
version that the virtual machine meets.
Specified by:
getManagementSpecVersion
in interface java.lang.management.RuntimeMXBean
Returns:
the version of the management interface specification adhered to
by the virtual machine.
getName
- public java.lang.String getName( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns the string name of this virtual machine. This value may be
different for each particular running virtual machine.
Specified by:
getName
in interface java.lang.management.RuntimeMXBean
Returns:
the name of this running virtual machine.
getSpecName
- public java.lang.String getSpecName( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns the name of the Java virtual machine specification followed by
this virtual machine. The value is identical to that which would be
obtained from a call to
System.getProperty(java.lang.String)
supplying the value "java.vm.specification.name" for the key.
Specified by:
getSpecName
in interface java.lang.management.RuntimeMXBean
Returns:
the name of the Java virtual machine specification.
See Also:
System.getProperty(java.lang.String)
getSpecVendor
- public java.lang.String getSpecVendor( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns the name of the Java virtual machine specification vendor. The
value is identical to that which would be obtained from a call to
System.getProperty(java.lang.String)
supplying the value
"java.vm.specification.vendor" for the key.
Specified by:
getSpecVendor
in interface java.lang.management.RuntimeMXBean
Returns:
the name of the Java virtual machine specification vendor.
See Also:
System.getProperty(java.lang.String)
getSpecVersion
- public java.lang.String getSpecVersion( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns the name of the Java virtual machine specification version. The
value is identical to that which would be obtained from a call to
System.getProperty(java.lang.String)
supplying the value
"java.vm.specification.version" for the key.
Specified by:
getSpecVersion
in interface java.lang.management.RuntimeMXBean
Returns:
the Java virtual machine specification version.
See Also:
System.getProperty(java.lang.String)
getStartTime
- public long getStartTime()
Description copied from interface: java.lang.management.RuntimeMXBean
Returns the time, in milliseconds, when the virtual machine was started.
Specified by:
getStartTime
in interface java.lang.management.RuntimeMXBean
Returns:
the virtual machine start time in milliseconds.
getUptime
- public long getUptime()
Description copied from interface: java.lang.management.RuntimeMXBean
Returns the lifetime of the virtual machine in milliseconds.
Specified by:
getUptime
in interface java.lang.management.RuntimeMXBean
Returns:
the number of milliseconds the virtual machine has been running.
getVmName
- public java.lang.String getVmName( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns the name of the Java virtual machine implementation. The value is
identical to that which would be obtained from a call to
System.getProperty(java.lang.String)
supplying the value
"java.vm.name" for the key.
Specified by:
getVmName
in interface java.lang.management.RuntimeMXBean
Returns:
the name of the Java virtual machine implementation.
See Also:
System.getProperty(java.lang.String)
getVmVendor
- public java.lang.String getVmVendor( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns the name of the Java virtual machine implementation vendor. The
value is identical to that which would be obtained from a call to
System.getProperty(java.lang.String)
supplying the value
"java.vm.vendor" for the key.
Specified by:
getVmVendor
in interface java.lang.management.RuntimeMXBean
Returns:
the name of the Java virtual machine implementation vendor.
See Also:
System.getProperty(java.lang.String)
getVmVersion
- public java.lang.String getVmVersion( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns the version of the Java virtual machine implementation. The value
is identical to that which would be obtained from a call to
System.getProperty(java.lang.String)
supplying the value
"java.vm.version" for the key.
Specified by:
getVmVersion
in interface java.lang.management.RuntimeMXBean
Returns:
the version of the Java virtual machine implementation.
See Also:
System.getProperty(java.lang.String)
isBootClassPathSupported
- public boolean isBootClassPathSupported( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns a boolean indication of whether or not the virtual machine
supports a bootstrap class loading mechanism.
Specified by:
isBootClassPathSupported
in interface java.lang.management.RuntimeMXBean
Returns:
true
if supported, false
otherwise. getInputArguments
- public java.util.List<java.lang.String> getInputArguments( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns a list of all of the input arguments passed to the virtual
machine on start-up. This will not include any input arguments
that are passed into the application's
main(String[] args)
method.
Specified by:
getInputArguments
in interface java.lang.management.RuntimeMXBean
Returns:
a list of strings, each one containing an argument to the virtual
machine. If no virtual machine arguments were passed in at
start-up time then this will be an empty list.
getSystemProperties
- public java.util.Map<java.lang.String,java.lang.String> getSystemProperties( )
Description copied from interface: java.lang.management.RuntimeMXBean
Returns a map of the names and values of every system property known to
the virtual machine.
Specified by:
getSystemProperties
in interface java.lang.management.RuntimeMXBean
Returns:
a map containing the names and values of every system property.
Description copied from interface:
java.lang.management.RuntimeMXBean