Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/com/sun/management/GarbageCollectorMXBean.java
38831 views
/*1* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package com.sun.management;26import javax.management.openmbean.CompositeData;27import javax.management.openmbean.CompositeType;2829/**30* Platform-specific management interface for a garbage collector31* which performs collections in cycles.32*33* <p> This platform extension is only available to the garbage34* collection implementation that supports this extension.35*36* @author Mandy Chung37* @since 1.538*/39@jdk.Exported40public interface GarbageCollectorMXBean41extends java.lang.management.GarbageCollectorMXBean {4243/**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 obtained48* 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 representing55* the most GC information; or <tt>null</tt> if no GC56* information available.57*/58public GcInfo getLastGcInfo();59}606162