Interface MemoryManagerMXBean

All Superinterfaces:
PlatformManagedObject
All Known Subinterfaces:
GarbageCollectorMXBean, GarbageCollectorMXBean, GarbageCollectorMXBean

public interface MemoryManagerMXBean extends PlatformManagedObject
The management and monitoring interface for a virtual machine memory manager. Each memory manager is responsible for managing at least one memory pool in the running virtual machine.

Multiple instances of this interface are available to clients. Each may be distinguished by their separate ObjectName value.

Accessing this kind of MXBean can be done in one of three ways.

  1. Invoking the static ManagementFactory.getMemoryManagerMXBeans() method which returns a List of all currently instantiated MemoryManagerBeans.
  2. Using a MBeanServerConnection.
  3. Obtaining a proxy MXBean from the static ManagementFactory.newPlatformMXBeanProxy(javax.management.MBeanServerConnection, java.lang.String, java.lang.Class<T>) method, passing in the string "java.lang:type=MemoryManager,name= unique manager's name " for the value of the second parameter.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the names of all of the memory pools managed by this MXBean.
    Returns the name of this particular memory manager.
    boolean
    Returns true if this memory manager is still valid in the virtual machine.

    Methods declared in interface java.lang.management.PlatformManagedObject

    getObjectName
  • Method Details

    • getMemoryPoolNames

      String[] getMemoryPoolNames()
      Returns the names of all of the memory pools managed by this MXBean.
      Returns:
      string array containing the names of all of the managed memory pools.
    • getName

      String getName()
      Returns the name of this particular memory manager.
      Returns:
      the name of this memory manager.
    • isValid

      boolean isValid()
      Returns true if this memory manager is still valid in the virtual machine. That is, the memory manager has not been eliminated from the virtual machine memory.
      Returns:
      true if the memory manager is still valid in the virtual machine ; otherwise false.