com.ibm.lang.management
Class GarbageCollectorMXBeanImpl
- java.lang.Object
com.ibm.lang.management.DynamicMXBeanImpl
com.ibm.lang.management.MemoryManagerMXBeanImpl
com.ibm.lang.management.GarbageCollectorMXBeanImpl
All implemented interfaces:
java.lang.management.GarbageCollectorMXBean, java.lang.management.MemoryManagerMXBean, javax.management.DynamicMBean
- 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.
Since:
1.5
Field Summary
| Fields inherited from class com.ibm.lang.management.MemoryManagerMXBeanImpl |
|---|
id, name |
| Fields inherited from class com.ibm.lang.management.DynamicMXBeanImpl |
|---|
info |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
getCollectionCount()
|
|
getCollectionTime()
|
|
getLastCollectionEndTime()
|
|
getLastCollectionStartTime()
|
|
getMemoryUsed()
|
|
getTotalCompacts()
|
|
getTotalMemoryFreed()
|
|
initializeInfo()
Sets the metadata for this bean.
|
| Methods inherited from class com.ibm.lang.management.MemoryManagerMXBeanImpl |
|---|
getMemoryPoolNames, getName, isValid |
| Methods inherited from class com.ibm.lang.management.DynamicMXBeanImpl |
|---|
getAttribute, getAttributes, getMBeanInfo, getPresentAttribute, getPresentOperation, initMBeanInfo, invoke, setAttribute, setAttributes, setMBeanInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.management.MemoryManagerMXBean |
|---|
getMemoryPoolNames, getName, isValid |
Method Detail
initializeInfo
- protected void initializeInfo()
Sets the metadata for this bean.
Overrides:
initializeInfo in class MemoryManagerMXBeanImpl
getCollectionCount
- public long getCollectionCount( )
Description copied from interface:
java.lang.management.GarbageCollectorMXBean
Returns in a long the number of garbage collections carried out by the
associated collector.
Specified by:
getCollectionCount in interface java.lang.management.GarbageCollectorMXBean
Returns:
the total number of garbage collections that have been carried
out by the associated garbage collector.
getCollectionTime
- public long getCollectionTime()
Description copied from interface:
java.lang.management.GarbageCollectorMXBean
For the associated garbage collector, returns the total amount of time in
milliseconds that it has spent carrying out garbage collection.
Specified by:
getCollectionTime in interface java.lang.management.GarbageCollectorMXBean
Returns:
the number of milliseconds that have been spent in performing
garbage collection. This is a cumulative figure.
getLastCollectionStartTime
- public long getLastCollectionStartTime( )
Description copied from interface:
GarbageCollectorMXBean
Returns the start time in milliseconds of the last garbage
collection that was carried out by this collector.
Returns:
the start time of the most recent collection
getLastCollectionEndTime
- public long getLastCollectionEndTime( )
Description copied from interface:
GarbageCollectorMXBean
Returns the end time in milliseconds of the last garbage
collection that was carried out by this collector.
Returns:
the end time of the most recent collection
getMemoryUsed
- public long getMemoryUsed()
Description copied from interface:
GarbageCollectorMXBean
Returns the amount of heap memory used by objects that are managed
by the collector corresponding to this bean object.
Returns:
memory used in bytes
getTotalMemoryFreed
- public long getTotalMemoryFreed( )
Description copied from interface:
GarbageCollectorMXBean
Returns the cumulative total amount of memory freed, in bytes, by the
garbage collector corresponding to this bean object.
Returns:
memory freed in bytes
getTotalCompacts
- public long getTotalCompacts()
Description copied from interface:
GarbageCollectorMXBean
Returns the cumulative total number of compacts that was performed by
garbage collector corresponding to this bean object.
Returns:
number of compacts performed