src/java.management/share/classes/sun/management/VMManagement.java
author lucy
Thu, 23 May 2019 18:50:48 +0200
changeset 55024 948385f851f2
parent 47216 71c04702a3d5
permissions -rw-r--r--
8224652: 32-bit build failures after JDK-8213084 Reviewed-by: thartmann, shade Contributed-by: shade@redhat.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
17954
885a02686acb 7150256: Add back Diagnostic Command JMX API
fparain
parents: 9698
diff changeset
     2
 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.management;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.util.List;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import sun.management.counter.Counter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * An interface for the monitoring and management of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * Java virtual machine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
public interface VMManagement {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
    // Optional supports
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
    public boolean isCompilationTimeMonitoringSupported();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
    public boolean isThreadContentionMonitoringSupported();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
    public boolean isThreadContentionMonitoringEnabled();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    public boolean isCurrentThreadCpuTimeSupported();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
    public boolean isOtherThreadCpuTimeSupported();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
    public boolean isThreadCpuTimeEnabled();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    public boolean isBootClassPathSupported();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    public boolean isObjectMonitorUsageSupported();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    public boolean isSynchronizerUsageSupported();
8001
192adf3627b7 6173675: M&M: approximate memory allocation rate/amount per thread
phh
parents: 5506
diff changeset
    46
    public boolean isThreadAllocatedMemorySupported();
192adf3627b7 6173675: M&M: approximate memory allocation rate/amount per thread
phh
parents: 5506
diff changeset
    47
    public boolean isThreadAllocatedMemoryEnabled();
9698
8b66cd6c5ebc 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 8001
diff changeset
    48
    public boolean isGcNotificationSupported();
17954
885a02686acb 7150256: Add back Diagnostic Command JMX API
fparain
parents: 9698
diff changeset
    49
    public boolean isRemoteDiagnosticCommandsSupported();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    // Class Loading Subsystem
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    public long    getTotalClassCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    public int     getLoadedClassCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
    public long    getUnloadedClassCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    public boolean getVerboseClass();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    // Memory Subsystem
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    public boolean getVerboseGC();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    // Runtime Subsystem
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    public String  getManagementVersion();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
    public String  getVmId();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    public String  getVmName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    public String  getVmVendor();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    public String  getVmVersion();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    public String  getVmSpecName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    public String  getVmSpecVendor();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    public String  getVmSpecVersion();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    public String  getClassPath();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    public String  getLibraryPath();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    public String  getBootClassPath();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    public List<String> getVmArguments();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    public long    getStartupTime();
21640
6bbdcc430310 6523160: RuntimeMXBean.getUptime() returns negative values
jbachorik
parents: 17954
diff changeset
    74
    public long    getUptime();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    public int     getAvailableProcessors();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    // Compilation Subsystem
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    public String  getCompilerName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    public long    getTotalCompileTime();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    // Thread Subsystem
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    public long    getTotalThreadCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    public int     getLiveThreadCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    public int     getPeakThreadCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    public int     getDaemonThreadCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    // Operating System
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    public String  getOsName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    public String  getOsArch();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    public String  getOsVersion();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    // Hotspot-specific Runtime support
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    public long    getSafepointCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
    public long    getTotalSafepointTime();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    public long    getSafepointSyncTime();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    public long    getTotalApplicationNonStoppedTime();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    public long    getLoadedClassSize();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    public long    getUnloadedClassSize();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    public long    getClassLoadingTime();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    public long    getMethodDataSize();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    public long    getInitializedClassCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    public long    getClassInitializationTime();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
    public long    getClassVerificationTime();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    // Performance counter support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    public List<Counter>   getInternalCounters(String pattern);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
}