java.lang.management

Interface BufferPoolMXBean

  • All Superinterfaces:
    PlatformManagedObject

    public interface BufferPoolMXBean
    extends PlatformManagedObject
    The management interface for a buffer pool, for example a pool of direct or mapped buffers.

    A class implementing this interface is an MXBean. A Java virtual machine has one or more implementations of this interface. The getPlatformMXBeans method can be used to obtain the list of BufferPoolMXBean objects representing the management interfaces for pools of buffers as follows:

         List<BufferPoolMXBean> pools = ManagementFactory.getPlatformMXBeans(BufferPoolMXBean.class);
     

    The management interfaces are also registered with the platform MBeanServer. The ObjectName that uniquely identifies the management interface within the MBeanServer takes the form:

         java.nio:type=BufferPool,name=pool name
     
    where pool name is the name of the buffer pool.
    Since:
    1.7
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      long getCount()
      Returns an estimate of the number of buffers in the pool.
      long getMemoryUsed()
      Returns an estimate of the memory that the Java virtual machine is using for this buffer pool.
      String getName()
      Returns the name representing this buffer pool.
      long getTotalCapacity()
      Returns an estimate of the total capacity of the buffers in this pool.

        

      • Methods inherited from interface java.lang.management.PlatformManagedObject

        getObjectName
    • Method Detail

      • getName

        String getName()
        Returns the name representing this buffer pool.
        Returns:
        The name of this buffer pool.
      • getCount

        long getCount()
        Returns an estimate of the number of buffers in the pool.
        Returns:
        An estimate of the number of buffers in this pool
      • getTotalCapacity

        long getTotalCapacity()
        Returns an estimate of the total capacity of the buffers in this pool. A buffer's capacity is the number of elements it contains and the value returned by this method is an estimate of the total capacity of buffers in the pool in bytes.
        Returns:
        An estimate of the total capacity of the buffers in this pool in bytes
      • getMemoryUsed

        long getMemoryUsed()
        Returns an estimate of the memory that the Java virtual machine is using for this buffer pool. The value returned by this method may differ from the estimate of the total capacity of the buffers in this pool. This difference is explained by alignment, memory allocator, and other implementation specific reasons.
        Returns:
        An estimate of the memory that the Java virtual machine is using for this buffer pool in bytes, or -1L if an estimate of the memory usage is not available

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.

Document créé le 11/06/2005, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/lang/management/BufferPoolMXBean.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

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