Showing the changes to java/pkg/sun/management/HotspotClassLoadingMBean.java (1 of 18352 files). Show all
Unified · Split
| @@ -0,0 +1,108 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2003, 2004, Oracle and/or its affiliates. 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. Oracle designates this | ||
| 8 | * particular file as subject to the "Classpath" exception as provided | ||
| 9 | * by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
| 22 | * or visit www.oracle.com if you need additional information or have any | ||
| 23 | * questions. | ||
| 24 | */ | ||
| 25 | |||
| 26 | package sun.management; | ||
| 27 | |||
| 28 | import java.lang.management.ClassLoadingMXBean; | ||
| 29 | import 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 | */ | ||
| 37 | public 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 | } | ||