Interface RuntimeMXBean

All Superinterfaces:
PlatformManagedObject

public interface RuntimeMXBean
extends PlatformManagedObject
The management interface for the runtime system of the Java virtual machine.

A Java virtual machine has a single instance of the implementation class of this interface. This instance implementing this interface is an MXBean that can be obtained by calling the ManagementFactory.getRuntimeMXBean() method or from the platform MBeanServer method.

The ObjectName for uniquely identifying the MXBean for the runtime system within an MBeanServer is:

java.lang:type=Runtime
It can be obtained by calling the PlatformManagedObject.getObjectName() method.

This interface defines several convenient methods for accessing system properties about the Java virtual machine.

Since:
1.5
See Also:
ManagementFactory.getPlatformMXBeans(Class), JMX Specification., Ways to Access MXBeans
  • Method Summary

    Modifier and Type Method Description
    String getBootClassPath()
    Returns the boot class path that is used by the bootstrap class loader to search for class files.
    String getClassPath()
    Returns the Java class path that is used by the system class loader to search for class files.
    List<String> getInputArguments()
    Returns the input arguments passed to the Java virtual machine which does not include the arguments to the main method.
    String getLibraryPath()
    Returns the Java library path.
    String getManagementSpecVersion()
    Returns the version of the specification for the management interface implemented by the running Java virtual machine.
    String getName()
    Returns the name representing the running Java virtual machine.
    default long getPid()
    Returns the process ID representing the running Java virtual machine.
    String getSpecName()
    Returns the Java virtual machine specification name.
    String getSpecVendor()
    Returns the Java virtual machine specification vendor.
    String getSpecVersion()
    Returns the Java virtual machine specification version.
    long getStartTime()
    Returns the start time of the Java virtual machine in milliseconds.
    Map<String,​String> getSystemProperties()
    Returns a map of names and values of all system properties.
    long getUptime()
    Returns the uptime of the Java virtual machine in milliseconds.
    String getVmName()
    Returns the Java virtual machine implementation name.
    String getVmVendor()
    Returns the Java virtual machine implementation vendor.
    String getVmVersion()
    Returns the Java virtual machine implementation version.
    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.

    Methods declared in interface java.lang.management.PlatformManagedObject

    getObjectName