-
- 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 theplatform MBeanServer
method.The ObjectName for uniquely identifying the MXBean for a memory manager within an MBeanServer is:
java.lang:type=MemoryManager
,name=manager's namePlatformManagedObject.getObjectName()
method.- Since:
- 1.5
- See Also:
ManagementFactory.getPlatformMXBeans(Class)
,MemoryMXBean
, JMX Specification., Ways to Access MXBeans
-
-
Method Summary
Methods 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.
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/lang/management/memorymanagermxbean.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.