Interface MemoryManagerMXBean
- All Superinterfaces:
PlatformManagedObject
- All Known Subinterfaces:
-
GarbageCollectorMXBean,GarbageCollectorMXBean
public interface MemoryManagerMXBean extends PlatformManagedObject
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:
It can be obtained by calling thejava.lang:type=MemoryManager,name=manager's name
PlatformManagedObject.getObjectName() method.- Since:
- 1.5
- See Also:
Method Summary
| Modifier and Type | Method | 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 declared in interface java.lang.management.PlatformManagedObject
getObjectName
Method Details
getName
String getName()
- Returns:
- the name of this memory manager.
isValid
boolean isValid()
- Returns:
-
trueif the memory manager is valid in the Java virtual machine;falseotherwise.
getMemoryPoolNames
String[] getMemoryPoolNames()
- Returns:
- an array of
Stringobjects, each is the name of a memory pool that this memory manager manages.
© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/java.management/java/lang/management/MemoryManagerMXBean.html