Class: sun.management.RuntimeImpl
- class RuntimeImpl
- implements RuntimeMXBean
Methods
-
RuntimeImpltop
RuntimeImpl(VMManagement vm)Constructor of RuntimeImpl class. -
getBootClassPathtop
public String 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 java.lang.management.RuntimeMXBean.isBootClassPathSupported() method can be used to determine if the Java virtual machine supports this method.
- Specified by:
- getBootClassPath from RuntimeMXBean
-
getClassPathtop
public String 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.
- Specified by:
- getClassPath from RuntimeMXBean
-
getInputArgumentstop
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 Listis String[]. - Specified by:
- getInputArguments from RuntimeMXBean
-
getLibraryPathtop
public String 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.
- Specified by:
- getLibraryPath from RuntimeMXBean
-
getManagementSpecVersiontop
public String getManagementSpecVersion()Returns the version of the specification for the management interface implemented by the running Java virtual machine.- Specified by:
- getManagementSpecVersion from RuntimeMXBean
-
getNametop
public String 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.- Specified by:
- getName from RuntimeMXBean
-
getSpecNametop
public String getSpecName()Returns the Java virtual machine specification name. This method is equivalent to System.getProperty("java.vm.specification.name").- Specified by:
- getSpecName from RuntimeMXBean
-
getSpecVendortop
public String getSpecVendor()Returns the Java virtual machine specification vendor. This method is equivalent to System.getProperty("java.vm.specification.vendor").- Specified by:
- getSpecVendor from RuntimeMXBean
-
getSpecVersiontop
public String getSpecVersion()Returns the Java virtual machine specification version. This method is equivalent to System.getProperty("java.vm.specification.version").- Specified by:
- getSpecVersion from RuntimeMXBean
-
getStartTimetop
public long getStartTime()Returns the start time of the Java virtual machine in milliseconds. This method returns the approximate time when the Java virtual machine started.- Specified by:
- getStartTime from RuntimeMXBean
-
getSystemPropertiestop
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 Mapis TabularData with two items in each row as follows: Item Name Item Type key String value String - Specified by:
- getSystemProperties from RuntimeMXBean
-
getUptimetop
public long getUptime()Returns the uptime of the Java virtual machine in milliseconds.- Specified by:
- getUptime from RuntimeMXBean
-
getVmNametop
public String getVmName()Returns the Java virtual machine implementation name. This method is equivalent to System.getProperty("java.vm.name").- Specified by:
- getVmName from RuntimeMXBean
-
getVmVendortop
public String getVmVendor()Returns the Java virtual machine implementation vendor. This method is equivalent to System.getProperty("java.vm.vendor").- Specified by:
- getVmVendor from RuntimeMXBean
-
getVmVersiontop
public String getVmVersion()Returns the Java virtual machine implementation version. This method is equivalent to System.getProperty("java.vm.version").- Specified by:
- getVmVersion from RuntimeMXBean
-
isBootClassPathSupportedtop
public boolean isBootClassPathSupported()Tests if the Java virtual machine supports the boot class path mechanism used by the bootstrap class loader to search for class files.- Specified by:
- isBootClassPathSupported from RuntimeMXBean
Fields
-
jvm
final private VMManagement jvm -
vmStartupTime
final private long vmStartupTime
