com.ibm.lang.management

Class GarbageCollectorMXBeanImpl

  1. java.lang.Object
  2. extended bycom.ibm.lang.management.DynamicMXBeanImpl
  3. extended bycom.ibm.lang.management.MemoryManagerMXBeanImpl
  4. extended bycom.ibm.lang.management.GarbageCollectorMXBeanImpl
All implemented interfaces:
java.lang.management.GarbageCollectorMXBean, java.lang.management.MemoryManagerMXBean, javax.management.DynamicMBean

  1. public final class GarbageCollectorMXBeanImpl
  2. extends MemoryManagerMXBeanImpl
  3. implements GarbageCollectorMXBean
Runtime type for 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
  1. long
getCollectionCount()
  1. long
getCollectionTime()
  1. long
getLastCollectionEndTime()
  1. long
getLastCollectionStartTime()
  1. long
getMemoryUsed()
  1. long
getTotalCompacts()
  1. long
getTotalMemoryFreed()
  1. protected
  2. void
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

  1. protected void initializeInfo()
Sets the metadata for this bean.
Overrides:

getCollectionCount

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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