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>CompilationMXBean</code> is an interface used by the management
23: * system to access compilation properties.
24: * </p>
25: * <p>
26: * <code>ObjectName</code>: java.lang:type=Compilation
27: * </p>
28: *
29: * @since 1.5
30: */
31: public interface CompilationMXBean {
32:
33: /**
34: * <p>
35: * The name of the compilation system.
36: * </p>
37: *
38: * @return The compiler's name.
39: */
40: String getName();
41:
42: /**
43: * <p>
44: * The approximate, cumulative time (in milliseconds) spent performing
45: * compilation.
46: * </p>
47: *
48: * @return The total time spent compiling.
49: * @throws UnsupportedOperationException if this is not supported.
50: */
51: long getTotalCompilationTime();
52:
53: /**
54: * <p>
55: * Indicates whether or not the JVM supports compilation time monitoring.
56: * </p>
57: *
58: * @return <code>true</code> if supported, otherwise <code>false</code>.
59: */
60: boolean isCompilationTimeMonitoringSupported();
61: }
|