APIdia Launch Partner
Top Description Methods
java.lang.management

public Interface MemoryManagerMXBean

extends PlatformManagedObject
Known Direct Subinterfaces
java.lang.management.GarbageCollectorMXBean
Known Direct Implementers
sun.management.MemoryManagerImpl

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 an MXBean that can be obtained by calling the ManagementFactory#getMemoryManagerMXBeans method or from the platform MBeanServer method.

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

java.lang:type=MemoryManager,name=manager's name
It can be obtained by calling the PlatformManagedObject#getObjectName method.
Author
Mandy Chung
Since
1.5
See Also
ManagementFactory#getPlatformMXBeans(Class), MemoryMXBean, JMX Specification., Ways to Access MXBeans

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

an array of String objects, each is the name of a memory pool that this memory manager manages.
getMemoryPoolNames
()

Returns the name of memory pools that this memory manager manages.

public String

Returns:

the name of this memory manager.
getName
()

Returns the name representing this memory manager.

public boolean

Returns:

true if the memory manager is valid in the Java virtual machine; false otherwise.
isValid
()

Tests if this memory manager is valid in the Java virtual machine.

Inherited from java.lang.management.PlatformManagedObject:
getObjectName

Method Detail

getMemoryPoolNamesback to summary
public String[] getMemoryPoolNames()

Returns the name of memory pools that this memory manager manages.

Returns:String[]

an array of String objects, each is the name of a memory pool that this memory manager manages.

getNameback to summary
public String getName()

Returns the name representing this memory manager.

Returns:String

the name of this memory manager.

isValidback to summary
public 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:boolean

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