Path: blob/master/src/java.management/share/classes/sun/management/HotspotClassLoadingMBean.java
41152 views
/*1* Copyright (c) 2003, 2004, 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 sun.management;2627import java.lang.management.ClassLoadingMXBean;28import sun.management.counter.Counter;2930/**31* Hotspot internal management interface for the class loading system.32*33* This management interface is internal and uncommitted34* and subject to change without notice.35*/36public interface HotspotClassLoadingMBean {37/**38* Returns the amount of memory in bytes occupied by loaded classes39* in the Java virtual machine.40*41* @return the amount of memory in bytes occupied by loaded classes42* in the Java virtual machine.43*/44public long getLoadedClassSize();4546/**47* Returns the number of bytes that the Java virtual machine48* collected due to class unloading.49*50* @return the number of bytes that the VM collected due to51* class unloading.52*/53public long getUnloadedClassSize();5455/**56* Returns the accumulated elapsed time spent by class loading57* in milliseconds.58*59* @return the accumulated elapsed time spent by class loading60* in milliseconds.61*/62public long getClassLoadingTime();6364/**65* Returns the amount of memory in bytes occupied by the method66* data.67*68* @return the amount of memory in bytes occupied by the method69* data.70*/71public long getMethodDataSize();7273/**74* Returns the number of classes for which initializers were run.75*76* @return the number of classes for which initializers were run.77*/78public long getInitializedClassCount();7980/**81* Returns the accumulated elapsed time spent in class initializers82* in milliseconds.83*84* @return the accumulated elapsed time spent in class initializers85* in milliseconds.86*/87public long getClassInitializationTime();8889/**90* Returns the accumulated elapsed time spent in class verifier91* in milliseconds.92*93* @return the accumulated elapsed time spent in class verifier94* in milliseconds.95*/96public long getClassVerificationTime();9798/**99* Returns a list of internal counters maintained in the Java100* virtual machine for the class loading system.101*102* @return a list of internal counters maintained in the VM103* for the class loading system.104*/105public java.util.List<Counter> getInternalClassLoadingCounters();106107}108109110