blob: 1eae335a0d01baee371021e52d85da88a2654ffc [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001/*
2 * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Sun designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Sun in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 * CA 95054 USA or visit www.sun.com if you need additional information or
23 * have any questions.
24 */
25
26package sun.management;
27
28import java.lang.management.ClassLoadingMXBean;
29import sun.management.counter.Counter;
30
31/**
32 * Hotspot internal management interface for the class loading system.
33 *
34 * This management interface is internal and uncommitted
35 * and subject to change without notice.
36 */
37public interface HotspotClassLoadingMBean {
38 /**
39 * Returns the amount of memory in bytes occupied by loaded classes
40 * in the Java virtual machine.
41 *
42 * @return the amount of memory in bytes occupied by loaded classes
43 * in the Java virtual machine.
44 */
45 public long getLoadedClassSize();
46
47 /**
48 * Returns the number of bytes that the Java virtual machine
49 * collected due to class unloading.
50 *
51 * @return the number of bytes that the VM collected due to
52 * class unloading.
53 */
54 public long getUnloadedClassSize();
55
56 /**
57 * Returns the accumulated elapsed time spent by class loading
58 * in milliseconds.
59 *
60 * @return the accumulated elapsed time spent by class loading
61 * in milliseconds.
62 */
63 public long getClassLoadingTime();
64
65 /**
66 * Returns the amount of memory in bytes occupied by the method
67 * data.
68 *
69 * @return the amount of memory in bytes occupied by the method
70 * data.
71 */
72 public long getMethodDataSize();
73
74 /**
75 * Returns the number of classes for which initializers were run.
76 *
77 * @return the number of classes for which initializers were run.
78 */
79 public long getInitializedClassCount();
80
81 /**
82 * Returns the accumulated elapsed time spent in class initializers
83 * in milliseconds.
84 *
85 * @return the accumulated elapsed time spent in class initializers
86 * in milliseconds.
87 */
88 public long getClassInitializationTime();
89
90 /**
91 * Returns the accumulated elapsed time spent in class verifier
92 * in milliseconds.
93 *
94 * @return the accumulated elapsed time spent in class verifier
95 * in milliseconds.
96 */
97 public long getClassVerificationTime();
98
99 /**
100 * Returns a list of internal counters maintained in the Java
101 * virtual machine for the class loading system.
102 *
103 * @return a list of internal counters maintained in the VM
104 * for the class loading system.
105 */
106 public java.util.List<Counter> getInternalClassLoadingCounters();
107
108}