01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package java.lang.management;
19:
20: /**
21: * <p>
22: * <code>ClassLoadingMXBean</code> is an interface used by the management
23: * system to access class loader properties.
24: * </p>
25: * <p>
26: * <code>ObjectName</code>: java.lang:type=ClassLoading
27: * </p>
28: *
29: * @since 1.5
30: */
31: public interface ClassLoadingMXBean {
32: /**
33: * <p>
34: * The number of classes currently loaded in the JVM.
35: * </p>
36: *
37: * @return The number of loaded classes.
38: */
39: int getLoadedClassCount();
40:
41: /**
42: * <p>
43: * The total number of classes the JVM has loaded since startup.
44: * </p>
45: *
46: * @return The total number of classes loaded.
47: */
48: long getTotalLoadedClassCount();
49:
50: /**
51: * <p>
52: * The number of classes that have been unloaded in the JVM since startup.
53: * </p>
54: *
55: * @return The number of classes unloaded.
56: */
57: long getUnloadedClassCount();
58:
59: /**
60: * <p>
61: * Indicates whether or not the verbose output is enabled for the class
62: * loading system.
63: * </p>
64: *
65: * @return <code>true</code> is verbose output is enabled, otherwise <code>false</code>.
66: */
67: boolean isVerbose();
68:
69: /**
70: * <p>
71: * Enables or disables the verbose output of the class loading system.
72: * </p>
73: *
74: * @param value <code>true</code> to enable, <code>false</code> to
75: * disable.
76: * @throws SecurityException if caller doesn't have
77: * <code>ManagementPermission("control")</code>.
78: */
79: void setVerbose(boolean value);
80: }
|