- All Superinterfaces:
MemoryManagerMXBean
,PlatformManagedObject
- All Known Subinterfaces:
GarbageCollectorMXBean
Platform-specific management interface for a memory manager of
the Java virtual machine
This platform extension is only available to a memory manager implementation that supports this extension.
- Since:
- 18
-
Method Summary
Methods declared in interface java.lang.management.MemoryManagerMXBean
getMemoryPoolNames, getName
Methods declared in interface java.lang.management.PlatformManagedObject
getObjectName
-
Method Details
-
isValid
default boolean isValid()Indicate whether or not the manager is currently valid. A memory manager may be removed by a Java virtual machine and become invalid.- Specified by:
isValid
in interfaceMemoryManagerMXBean
- Returns:
true
if the manager is valid;false
otherwise.
-
getVersion
Returns, as aString
, the version of the MemoryManagerMXBean API. The format is majorVersion.minorVersion.microVersion.Memory manager specific attributes, if any, can be obtained via the
CompositeData
interface.MBeanServer access:
The mapped type ofMemoryType
isString
.- Returns:
- a
String
object representing the memory manager version; ornull
if no version information is available.
-