java.lang.management

Interface MemoryManagerMXBean

public interface MemoryManagerMXBean

Provides access to information about the memory managers of the virtual machine. An instance of this bean for each memory manager is obtained by calling {@link ManagementFactory#getMemoryManagerMXBeans()}.

Since: 1.5

Method Summary
String[]getMemoryPoolNames()
Returns an array containing the names of the memory pools this memory manager manages.
StringgetName()
Returns the name of the memory manager.
booleanisValid()
Returns true if this memory manager is still valid.

Method Detail

getMemoryPoolNames

public String[] getMemoryPoolNames()
Returns an array containing the names of the memory pools this memory manager manages.

Returns: an array containing the name of each memory pool this manager is responsible for.

getName

public String getName()
Returns the name of the memory manager.

Returns: the memory manager name.

isValid

public boolean isValid()
Returns true if this memory manager is still valid. A memory manager becomes invalid when it is removed by the virtual machine and no longer used.

Returns: true if this memory manager is valid.