Package Summary  Overview Summary

class:RuntimeMXBean [NONE]

method:getPid() [NONE]

  • getPid

    default long getPid()
    Returns the process ID representing the running Java virtual machine.
    Implementation Requirements:
    The default implementation returns process ID of the current process .
    Returns:
    the process ID representing the running Java virtual machine.
    Since:
    10

method:getName() [NONE]

  • getName

    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.
    Returns:
    the name representing the running Java virtual machine.

method:getVmName() [NONE]

method:getVmVendor() [NONE]

method:getVmVersion() [NONE]

method:getSpecName() [NONE]

method:getSpecVendor() [NONE]

method:getSpecVersion() [NONE]

method:getManagementSpecVersion() [NONE]

  • getManagementSpecVersion

    String getManagementSpecVersion()
    Returns the version of the specification for the management interface implemented by the running Java virtual machine.
    Returns:
    the version of the specification for the management interface implemented by the running Java virtual machine.

method:getClassPath() [NONE]

method:getLibraryPath() [NONE]

method:isBootClassPathSupported() [NONE]

  • isBootClassPathSupported

    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.
    Returns:
    true if the Java virtual machine supports the class path mechanism; false otherwise.

method:getBootClassPath() [NONE]

  • getBootClassPath

    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 isBootClassPathSupported() method can be used to determine if the Java virtual machine supports this method.

    Returns:
    the boot class path.
    Throws:
    UnsupportedOperationException - if the Java virtual machine does not support this operation.
    SecurityException - if a security manager exists and the caller does not have ManagementPermission("monitor").

method:getInputArguments() [NONE]

  • getInputArguments

    List<String> 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[].

    Returns:
    a list of String objects; each element is an argument passed to the Java virtual machine.
    Throws:
    SecurityException - if a security manager exists and the caller does not have ManagementPermission("monitor").

method:getUptime() [NONE]

  • getUptime

    long getUptime()
    Returns the uptime of the Java virtual machine in milliseconds.
    Returns:
    uptime of the Java virtual machine in milliseconds.

method:getStartTime() [NONE]

  • getStartTime

    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.
    Returns:
    start time of the Java virtual machine in milliseconds.

method:getSystemProperties() [NONE]

  • getSystemProperties

    Map<String,‚ÄčString> 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
    keyString
    valueString

    Returns:
    a map of names and values of all system properties.
    Throws:
    SecurityException - if a security manager exists and its checkPropertiesAccess method doesn't allow access to the system properties.

© 2019 Oracle Corporation and/or its affiliates