PlatformManagedObject
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.ManagementFactory.getPlatformMXBeans(Class)
,
MemoryMXBean
,
JMX Specification.,
Ways to Access MXBeansModifier 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.
|
getObjectName
String getName()
boolean isValid()
true
if the memory manager is valid in the
Java virtual machine;
false
otherwise.String[] getMemoryPoolNames()
String
objects, each is
the name of a memory pool that this memory manager manages. 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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps