java.lang.management
Interface MemoryManagerMBean

All Known Subinterfaces:
GarbageCollectorMBean

public interface MemoryManagerMBean

The management interface for a memory manager. A memory manager manages one or more memory pools of the Java virtual machine.

A Java virtual machine has one or more memory managers. An instance implementing this interface is a managed bean (MBean) conforming to the JMX Instrumentation Specification. The MBean can be obtained by calling the ManagementFactory.getMemoryManagerMBeans() method. An application can monitor the instrumentation of a memory manager and manage certain characteristics in any of the following ways:

The ManagementFactory.getPlatformMBeanServer() method returns the platform MBeanServer registered with all platform MBeans.

The ObjectName for uniquely identifying the MBean for a memory manager within an MBeanServer is:

java.lang:type=MemoryManager,name=manager's name

Since:
1.5
See Also:
MemoryMBean, Ways to Access Management Metrics

Method Summary
 List getMemoryPoolNames()
          Returns the list of the names of memory pools that this memory manager manages.
 String getName()
          Returns the name representing this memory manager.
 boolean isValid()
          Tests if this memory manager is valid in the Java virtual machine.
 

Method Detail

getName

String getName()
Returns the name representing this memory manager.

Returns:
the name of this memory manager.

isValid

boolean isValid()
Tests if this memory manager is valid in the Java virtual machine. A memory manager becomes invalid once the Java virtual machine removes it from the memory system.

Returns:
true if the memory manager is valid in the Java virtual machine; false otherwise.

getMemoryPoolNames

List getMemoryPoolNames()
Returns the list of the names of memory pools that this memory manager manages.

Returns:
a List of String objects, each represents the name of a memory pool that this memory manager manages.