HotspotClassLoadingMBean.java revision 0
0N/A/*
3909N/A * Copyright 2003-2004 Sun Microsystems, Inc. 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. Sun designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
2362N/A * CA 95054 USA or visit www.sun.com if you need additional information or
2362N/A * have any questions.
0N/A */
0N/A
0N/Apackage sun.management;
0N/A
0N/Aimport java.lang.management.ClassLoadingMXBean;
0N/Aimport sun.management.counter.Counter;
0N/A
0N/A/**
0N/A * Hotspot internal management interface for the class loading system.
0N/A *
1672N/A * This management interface is internal and uncommitted
0N/A * and subject to change without notice.
0N/A */
0N/Apublic interface HotspotClassLoadingMBean {
0N/A /**
0N/A * Returns the amount of memory in bytes occupied by loaded classes
0N/A * in the Java virtual machine.
0N/A *
0N/A * @return the amount of memory in bytes occupied by loaded classes
0N/A * in the Java virtual machine.
0N/A */
0N/A public long getLoadedClassSize();
0N/A
0N/A /**
0N/A * Returns the number of bytes that the Java virtual machine
0N/A * collected due to class unloading.
0N/A *
0N/A * @return the number of bytes that the VM collected due to
0N/A * class unloading.
0N/A */
public long getUnloadedClassSize();
/**
* Returns the accumulated elapsed time spent by class loading
* in milliseconds.
*
* @return the accumulated elapsed time spent by class loading
* in milliseconds.
*/
public long getClassLoadingTime();
/**
* Returns the amount of memory in bytes occupied by the method
* data.
*
* @return the amount of memory in bytes occupied by the method
* data.
*/
public long getMethodDataSize();
/**
* Returns the number of classes for which initializers were run.
*
* @return the number of classes for which initializers were run.
*/
public long getInitializedClassCount();
/**
* Returns the accumulated elapsed time spent in class initializers
* in milliseconds.
*
* @return the accumulated elapsed time spent in class initializers
* in milliseconds.
*/
public long getClassInitializationTime();
/**
* Returns the accumulated elapsed time spent in class verifier
* in milliseconds.
*
* @return the accumulated elapsed time spent in class verifier
* in milliseconds.
*/
public long getClassVerificationTime();
/**
* Returns a list of internal counters maintained in the Java
* virtual machine for the class loading system.
*
* @return a list of internal counters maintained in the VM
* for the class loading system.
*/
public java.util.List<Counter> getInternalClassLoadingCounters();
}