java.lang.management

Interface RuntimeMXBean

    • Method Summary

      Methods 
      Modifier and Type Method and 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.
      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 inherited from interface java.lang.management.PlatformManagedObject

        getObjectName
    • Method Detail

      • 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.
      • 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.
      • 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.
      • 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").
      • 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 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").
      • getUptime

        long getUptime()
        Returns the uptime of the Java virtual machine in milliseconds.
        Returns:
        uptime of the Java virtual machine in milliseconds.
      • 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.
      • 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 is TabularData with two items in each row as follows:

        Item Name Item Type
        key String
        value String

          

        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.

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Version en cache

17/11/2024 17:36:19 Cette version de la page est en cache (à la date du 17/11/2024 17:36:19) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.

Document créé le 31/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/lang/management/runtimemxbean.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, RuntimeMXBean

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut