src/share/classes/com/sun/management/GarbageCollectorMXBean.java

Print this page




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.management;
  27 import javax.management.openmbean.CompositeData;
  28 import javax.management.openmbean.CompositeType;
  29 
  30 /**
  31  * Platform-specific management interface for a garbage collector
  32  * which performs collections in cycles.
  33  *
  34  * <p> This platform extension is only available to the garbage
  35  * collection implementation that supports this extension.
  36  *
  37  * @author  Mandy Chung
  38  * @since   1.5
  39  */

  40 public interface GarbageCollectorMXBean
  41     extends java.lang.management.GarbageCollectorMXBean {
  42 
  43     /**
  44      * Returns the GC information about the most recent GC.
  45      * This method returns a {@link GcInfo}.
  46      * If no GC information is available, <tt>null</tt> is returned.
  47      * The collector-specific attributes, if any, can be obtained
  48      * via the {@link CompositeData CompositeData} interface.
  49      * <p>
  50      * <b>MBeanServer access:</b>
  51      * The mapped type of <tt>GcInfo</tt> is <tt>CompositeData</tt>
  52      * with attributes specified in {@link GcInfo#from GcInfo}.
  53      *
  54      * @return a <tt>GcInfo</tt> object representing
  55      * the most GC information; or <tt>null</tt> if no GC
  56      * information available.
  57      */
  58     public GcInfo getLastGcInfo();
  59 }


  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.management;
  27 import javax.management.openmbean.CompositeData;
  28 import javax.management.openmbean.CompositeType;
  29 
  30 /**
  31  * Platform-specific management interface for a garbage collector
  32  * which performs collections in cycles.
  33  *
  34  * <p> This platform extension is only available to the garbage
  35  * collection implementation that supports this extension.
  36  *
  37  * @author  Mandy Chung
  38  * @since   1.5
  39  */
  40 @jdk.Supported
  41 public interface GarbageCollectorMXBean
  42     extends java.lang.management.GarbageCollectorMXBean {
  43 
  44     /**
  45      * Returns the GC information about the most recent GC.
  46      * This method returns a {@link GcInfo}.
  47      * If no GC information is available, <tt>null</tt> is returned.
  48      * The collector-specific attributes, if any, can be obtained
  49      * via the {@link CompositeData CompositeData} interface.
  50      * <p>
  51      * <b>MBeanServer access:</b>
  52      * The mapped type of <tt>GcInfo</tt> is <tt>CompositeData</tt>
  53      * with attributes specified in {@link GcInfo#from GcInfo}.
  54      *
  55      * @return a <tt>GcInfo</tt> object representing
  56      * the most GC information; or <tt>null</tt> if no GC
  57      * information available.
  58      */
  59     public GcInfo getLastGcInfo();
  60 }