Spec-Zone .ru
спецификации, руководства, описания, API
Please note that the specifications and other information contained herein are not final and are subject to change. The information is being made available to you solely for purpose of evaluation.

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

java.lang.management
Interface MemoryManagerMXBean

All Superinterfaces:
PlatformManagedObject
All Known Subinterfaces:
GarbageCollectorMXBean

public interface MemoryManagerMXBean
extends PlatformManagedObject

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.

Since:
1.5
See Also:
ManagementFactory.getPlatformMXBeans(Class), MemoryMXBean, JMX Specification., Ways to Access MXBeans

Method Summary
Modifier and Type Method and Description
 String[] getMemoryPoolNames()
          Returns the name 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.
 
Methods inherited from interface java.lang.management.PlatformManagedObject
getObjectName
 

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

String[] getMemoryPoolNames()
Returns the name of memory pools that this memory manager manages.

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

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.