0N/A/*
2362N/A * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage com.sun.management;
0N/Aimport javax.management.openmbean.CompositeData;
0N/Aimport javax.management.openmbean.CompositeType;
0N/A
0N/A/**
0N/A * Platform-specific management interface for a garbage collector
0N/A * which performs collections in cycles.
0N/A *
0N/A * <p> This platform extension is only available to the garbage
0N/A * collection implementation that supports this extension.
0N/A *
0N/A * @author Mandy Chung
0N/A * @since 1.5
0N/A */
0N/Apublic interface GarbageCollectorMXBean
0N/A extends java.lang.management.GarbageCollectorMXBean {
0N/A
0N/A /**
0N/A * Returns the GC information about the most recent GC.
0N/A * This method returns a {@link GcInfo}.
0N/A * If no GC information is available, <tt>null</tt> is returned.
0N/A * The collector-specific attributes, if any, can be obtained
0N/A * via the {@link CompositeData CompositeData} interface.
0N/A * <p>
0N/A * <b>MBeanServer access:</b>
0N/A * The mapped type of <tt>GcInfo</tt> is <tt>CompositeData</tt>
0N/A * with attributes specified in {@link GcInfo#from GcInfo}.
0N/A *
0N/A * @return a <tt>GcInfo</tt> object representing
0N/A * the most GC information; or <tt>null</tt> if no GC
0N/A * information available.
0N/A */
0N/A public GcInfo getLastGcInfo();
0N/A}