APIdia Launch Partner
Top Description Fields Constructors Methods
sun.management

pack-priv Class RuntimeImpl

extends Object
implements RuntimeMXBean
Class Inheritance
All Implemented Interfaces
java.lang.management.RuntimeMXBean, java.lang.management.PlatformManagedObject
Imports
java.lang.management.RuntimeMXBean, .ManagementFactory, java.util.List, .HashMap, .Map, .Set, .Properties, javax.management.ObjectName

Implementation class for the runtime subsystem. Standard and committed hotspot-specific metrics if any. ManagementFactory.getRuntimeMXBean() returns an instance of this class.

Field Summary

Modifier and TypeField and Description
private final VMManagement
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
RuntimeImpl(VMManagement vm)

Constructor of RuntimeImpl class.

Method Summary

Modifier and TypeMethod and Description
public String
getBootClassPath()

Implements java.lang.management.RuntimeMXBean.getBootClassPath.

Returns the boot class path that is used by the bootstrap class loader to search for class files.

public String
getClassPath()

Implements java.lang.management.RuntimeMXBean.getClassPath.

Returns the Java class path that is used by the system class loader to search for class files.

public List<String>
getInputArguments()

Implements java.lang.management.RuntimeMXBean.getInputArguments.

Returns the input arguments passed to the Java virtual machine which does not include the arguments to the main method.

public String
getLibraryPath()

Implements java.lang.management.RuntimeMXBean.getLibraryPath.

Returns the Java library path.

public String
getManagementSpecVersion()

Implements java.lang.management.RuntimeMXBean.getManagementSpecVersion.

Returns the version of the specification for the management interface implemented by the running Java virtual machine.

public String
getName()

Implements java.lang.management.RuntimeMXBean.getName.

Returns the name representing the running Java virtual machine.

public ObjectName
getObjectName()

Implements java.lang.management.PlatformManagedObject.getObjectName.

Returns an ObjectName instance representing the object name of this platform managed object.

public String
getSpecName()

Implements java.lang.management.RuntimeMXBean.getSpecName.

Returns the Java virtual machine specification name.

public String
getSpecVendor()

Implements java.lang.management.RuntimeMXBean.getSpecVendor.

Returns the Java virtual machine specification vendor.

public String
getSpecVersion()

Implements java.lang.management.RuntimeMXBean.getSpecVersion.

Returns the Java virtual machine specification version.

public long
getStartTime()

Implements java.lang.management.RuntimeMXBean.getStartTime.

Returns the start time of the Java virtual machine in milliseconds.

public Map<String, String>
getSystemProperties()

Implements java.lang.management.RuntimeMXBean.getSystemProperties.

Returns a map of names and values of all system properties.

public long
getUptime()

Implements java.lang.management.RuntimeMXBean.getUptime.

Returns the uptime of the Java virtual machine in milliseconds.

public String
getVmName()

Implements java.lang.management.RuntimeMXBean.getVmName.

Returns the Java virtual machine implementation name.

public String
getVmVendor()

Implements java.lang.management.RuntimeMXBean.getVmVendor.

Returns the Java virtual machine implementation vendor.

public String
getVmVersion()

Implements java.lang.management.RuntimeMXBean.getVmVersion.

Returns the Java virtual machine implementation version.

public boolean
isBootClassPathSupported()

Implements java.lang.management.RuntimeMXBean.isBootClassPathSupported.

Tests if the Java virtual machine supports the boot class path mechanism used by the bootstrap class loader to search for class files.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jvmback to summary
private final VMManagement jvm
vmStartupTimeback to summary
private final long vmStartupTime

Constructor Detail

RuntimeImplback to summary
pack-priv RuntimeImpl(VMManagement vm)

Constructor of RuntimeImpl class.

Method Detail

getBootClassPathback to summary
public String getBootClassPath()

Implements java.lang.management.RuntimeMXBean.getBootClassPath.

Doc from java.lang.management.RuntimeMXBean.getBootClassPath.

Returns the boot class path that is used by the bootstrap class loader to search for class files.

Multiple paths in the boot class path are separated by the path separator character of the platform on which the Java virtual machine is running.

A Java virtual machine implementation may not support the boot class path mechanism for the bootstrap class loader to search for class files. The isBootClassPathSupported method can be used to determine if the Java virtual machine supports this method.

getClassPathback to summary
public String getClassPath()

Implements java.lang.management.RuntimeMXBean.getClassPath.

Doc from java.lang.management.RuntimeMXBean.getClassPath.

Returns the Java class path that is used by the system class loader to search for class files. This method is equivalent to System.getProperty("java.class.path").

Multiple paths in the Java class path are separated by the path separator character of the platform of the Java virtual machine being monitored.

getInputArgumentsback to summary
public List<String> getInputArguments()

Implements java.lang.management.RuntimeMXBean.getInputArguments.

Doc from java.lang.management.RuntimeMXBean.getInputArguments.

Returns the input arguments passed to the Java virtual machine which does not include the arguments to the main method. This method returns an empty list if there is no input argument to the Java virtual machine.

Some Java virtual machine implementations may take input arguments from multiple different sources: for examples, arguments passed from the application that launches the Java virtual machine such as the 'java' command, environment variables, configuration files, etc.

Typically, not all command-line options to the 'java' command are passed to the Java virtual machine. Thus, the returned input arguments may not include all command-line options.

MBeanServer access:
The mapped type of List<String> is String[].

getLibraryPathback to summary
public String getLibraryPath()

Implements java.lang.management.RuntimeMXBean.getLibraryPath.

Doc from java.lang.management.RuntimeMXBean.getLibraryPath.

Returns the Java library path. This method is equivalent to System.getProperty("java.library.path").

Multiple paths in the Java library path are separated by the path separator character of the platform of the Java virtual machine being monitored.

getManagementSpecVersionback to summary
public String getManagementSpecVersion()

Implements java.lang.management.RuntimeMXBean.getManagementSpecVersion.

Doc from java.lang.management.RuntimeMXBean.getManagementSpecVersion.

Returns the version of the specification for the management interface implemented by the running Java virtual machine.

getNameback to summary
public String getName()

Implements java.lang.management.RuntimeMXBean.getName.

Doc from java.lang.management.RuntimeMXBean.getName.

Returns the name representing the running Java virtual machine. The returned name string can be any arbitrary string and a Java virtual machine implementation can choose to embed platform-specific useful information in the returned name string. Each running virtual machine could have a different name.

getObjectNameback to summary
public ObjectName getObjectName()

Implements java.lang.management.PlatformManagedObject.getObjectName.

Doc from java.lang.management.PlatformManagedObject.getObjectName.

Returns an ObjectName instance representing the object name of this platform managed object.

getSpecNameback to summary
public String getSpecName()

Implements java.lang.management.RuntimeMXBean.getSpecName.

Doc from java.lang.management.RuntimeMXBean.getSpecName.

Returns the Java virtual machine specification name. This method is equivalent to System.getProperty("java.vm.specification.name").

getSpecVendorback to summary
public String getSpecVendor()

Implements java.lang.management.RuntimeMXBean.getSpecVendor.

Doc from java.lang.management.RuntimeMXBean.getSpecVendor.

Returns the Java virtual machine specification vendor. This method is equivalent to System.getProperty("java.vm.specification.vendor").

getSpecVersionback to summary
public String getSpecVersion()

Implements java.lang.management.RuntimeMXBean.getSpecVersion.

Doc from java.lang.management.RuntimeMXBean.getSpecVersion.

Returns the Java virtual machine specification version. This method is equivalent to System.getProperty("java.vm.specification.version").

getStartTimeback to summary
public long getStartTime()

Implements java.lang.management.RuntimeMXBean.getStartTime.

Doc from java.lang.management.RuntimeMXBean.getStartTime.

Returns the start time of the Java virtual machine in milliseconds. This method returns the approximate time when the Java virtual machine started.

getSystemPropertiesback to summary
public Map<String, String> getSystemProperties()

Implements java.lang.management.RuntimeMXBean.getSystemProperties.

Doc from java.lang.management.RuntimeMXBean.getSystemProperties.

Returns a map of names and values of all system properties. This method calls System#getProperties to get all system properties. Properties whose name or value is not a String are omitted.

MBeanServer access:
The mapped type of Map<String,String> is TabularData with two items in each row as follows:

Name and Type for each item
Item Name Item Type
key String
value String
getUptimeback to summary
public long getUptime()

Implements java.lang.management.RuntimeMXBean.getUptime.

Doc from java.lang.management.RuntimeMXBean.getUptime.

Returns the uptime of the Java virtual machine in milliseconds.

getVmNameback to summary
public String getVmName()

Implements java.lang.management.RuntimeMXBean.getVmName.

Doc from java.lang.management.RuntimeMXBean.getVmName.

Returns the Java virtual machine implementation name. This method is equivalent to System.getProperty("java.vm.name").

getVmVendorback to summary
public String getVmVendor()

Implements java.lang.management.RuntimeMXBean.getVmVendor.

Doc from java.lang.management.RuntimeMXBean.getVmVendor.

Returns the Java virtual machine implementation vendor. This method is equivalent to System.getProperty("java.vm.vendor").

getVmVersionback to summary
public String getVmVersion()

Implements java.lang.management.RuntimeMXBean.getVmVersion.

Doc from java.lang.management.RuntimeMXBean.getVmVersion.

Returns the Java virtual machine implementation version. This method is equivalent to System.getProperty("java.vm.version").

isBootClassPathSupportedback to summary
public boolean isBootClassPathSupported()

Implements java.lang.management.RuntimeMXBean.isBootClassPathSupported.

Doc from java.lang.management.RuntimeMXBean.isBootClassPathSupported.

Tests if the Java virtual machine supports the boot class path mechanism used by the bootstrap class loader to search for class files.