public final class GarbageCollectorMXBeanImpl extends MemoryManagerMXBeanImpl implements GarbageCollectorMXBean
GarbageCollectorMXBean
. In
addition to implementing the "standard" management interface
java.lang.management.GarbageCollectorMXBean
, this class also
provides an implementation of the IBM extension interface
com.ibm.lang.management.GarbageCollectorMXBean
.id, name
info
Modifier and Type | Method and Description |
---|---|
long |
getCollectionCount()
Returns in a long the number of garbage collections carried out by the
associated collector.
|
long |
getCollectionTime()
For the associated garbage collector, returns the total amount of time in
milliseconds that it has spent carrying out garbage collection.
|
long |
getLastCollectionEndTime()
Returns the end time in milliseconds of the last garbage
collection that was carried out by this collector.
|
long |
getLastCollectionStartTime()
Returns the start time in milliseconds of the last garbage
collection that was carried out by this collector.
|
long |
getMemoryUsed()
Returns the amount of heap memory used by objects that are managed
by the collector corresponding to this bean object.
|
long |
getTotalCompacts()
Returns the cumulative total number of compacts that was performed by
garbage collector corresponding to this bean object.
|
long |
getTotalMemoryFreed()
Returns the cumulative total amount of memory freed, in bytes, by the
garbage collector corresponding to this bean object.
|
protected void |
initializeInfo()
Sets the metadata for this bean.
|
getMemoryPoolNames, getName, isValid
getAttribute, getAttributes, getMBeanInfo, getPresentAttribute, getPresentOperation, initMBeanInfo, invoke, setAttribute, setAttributes, setMBeanInfo
protected void initializeInfo()
initializeInfo
in class MemoryManagerMXBeanImpl
public long getCollectionCount()
java.lang.management.GarbageCollectorMXBean
getCollectionCount
in interface java.lang.management.GarbageCollectorMXBean
public long getCollectionTime()
java.lang.management.GarbageCollectorMXBean
getCollectionTime
in interface java.lang.management.GarbageCollectorMXBean
public long getLastCollectionStartTime()
GarbageCollectorMXBean
public long getLastCollectionEndTime()
GarbageCollectorMXBean
public long getMemoryUsed()
GarbageCollectorMXBean
public long getTotalMemoryFreed()
GarbageCollectorMXBean
public long getTotalCompacts()
GarbageCollectorMXBean