- All Superinterfaces:
PlatformManagedObject
- All Known Subinterfaces:
GarbageCollectorMXBean,GarbageCollectorMXBean,GarbageCollectorMXBean
The management and monitoring interface for a virtual machine memory manager.
Each memory manager is responsible for managing at least one memory pool in
the running virtual machine.
Multiple instances of this interface are available to clients. Each may be
distinguished by their separate ObjectName value.
Accessing this kind of MXBean can be done in one of three
ways.
- Invoking the static
ManagementFactory.getMemoryManagerMXBeans()method which returns aListof all currently instantiated MemoryManagerBeans. - Using a
MBeanServerConnection. - Obtaining a proxy MXBean from the static
ManagementFactory.newPlatformMXBeanProxy(javax.management.MBeanServerConnection, java.lang.String, java.lang.Class<T>)method, passing in the string "java.lang:type=MemoryManager,name= unique manager's name " for the value of the second parameter.
-
Method Summary
Methods declared in interface java.lang.management.PlatformManagedObject
getObjectName
-
Method Details
-
getMemoryPoolNames
String[] getMemoryPoolNames()Returns the names of all of the memory pools managed by thisMXBean.- Returns:
- string array containing the names of all of the managed memory pools.
-
getName
String getName()Returns the name of this particular memory manager.- Returns:
- the name of this memory manager.
-
isValid
boolean isValid()Returnstrueif this memory manager is still valid in the virtual machine. That is, the memory manager has not been eliminated from the virtual machine memory.- Returns:
trueif the memory manager is still valid in the virtual machine ; otherwisefalse.
-