< prev index next >
src/java.management/share/classes/java/lang/management/GarbageCollectorMXBean.java
Print this page
*** 37,53 ****
* An instance implementing this interface is
* an <a href="ManagementFactory.html#MXBean">MXBean</a>
* that can be obtained by calling
* the {@link ManagementFactory#getGarbageCollectorMXBeans} method or
* from the {@link ManagementFactory#getPlatformMBeanServer
! * platform <tt>MBeanServer</tt>} method.
*
! * <p>The <tt>ObjectName</tt> for uniquely identifying the MXBean for
* a garbage collector within an MBeanServer is:
* <blockquote>
* {@link ManagementFactory#GARBAGE_COLLECTOR_MXBEAN_DOMAIN_TYPE
! * <tt>java.lang:type=GarbageCollector</tt>}<tt>,name=</tt><i>collector's name</i>
* </blockquote>
*
* It can be obtained by calling the
* {@link PlatformManagedObject#getObjectName} method.
*
--- 37,53 ----
* An instance implementing this interface is
* an <a href="ManagementFactory.html#MXBean">MXBean</a>
* that can be obtained by calling
* the {@link ManagementFactory#getGarbageCollectorMXBeans} method or
* from the {@link ManagementFactory#getPlatformMBeanServer
! * platform MBeanServer} method.
*
! * <p>The {@code ObjectName} for uniquely identifying the MXBean for
* a garbage collector within an MBeanServer is:
* <blockquote>
* {@link ManagementFactory#GARBAGE_COLLECTOR_MXBEAN_DOMAIN_TYPE
! * java.lang:type=GarbageCollector}{@code ,name=}<i>collector's name</i>
* </blockquote>
*
* It can be obtained by calling the
* {@link PlatformManagedObject#getObjectName} method.
*
*** 66,85 ****
* @since 1.5
*/
public interface GarbageCollectorMXBean extends MemoryManagerMXBean {
/**
* Returns the total number of collections that have occurred.
! * This method returns <tt>-1</tt> if the collection count is undefined for
* this collector.
*
* @return the total number of collections that have occurred.
*/
public long getCollectionCount();
/**
* Returns the approximate accumulated collection elapsed time
! * in milliseconds. This method returns <tt>-1</tt> if the collection
* elapsed time is undefined for this collector.
* <p>
* The Java virtual machine implementation may use a high resolution
* timer to measure the elapsed time. This method may return the
* same value even if the collection count has been incremented
--- 66,85 ----
* @since 1.5
*/
public interface GarbageCollectorMXBean extends MemoryManagerMXBean {
/**
* Returns the total number of collections that have occurred.
! * This method returns {@code -1} if the collection count is undefined for
* this collector.
*
* @return the total number of collections that have occurred.
*/
public long getCollectionCount();
/**
* Returns the approximate accumulated collection elapsed time
! * in milliseconds. This method returns {@code -1} if the collection
* elapsed time is undefined for this collector.
* <p>
* The Java virtual machine implementation may use a high resolution
* timer to measure the elapsed time. This method may return the
* same value even if the collection count has been incremented
< prev index next >