An interface for the monitoring and management of the Java virtual machine.
| 32 | * Java virtual machine. |
| 33 | */ |
| 34 | public interface VMManagement { |
| 35 | |
| 36 | // Optional supports |
| 37 | public boolean isCompilationTimeMonitoringSupported(); |
| 38 | public boolean isThreadContentionMonitoringSupported(); |
| 39 | public boolean isThreadContentionMonitoringEnabled(); |
| 40 | public boolean isCurrentThreadCpuTimeSupported(); |
| 41 | public boolean isOtherThreadCpuTimeSupported(); |
| 42 | public boolean isThreadCpuTimeEnabled(); |
| 43 | public boolean isBootClassPathSupported(); |
| 44 | public boolean isObjectMonitorUsageSupported(); |
| 45 | public boolean isSynchronizerUsageSupported(); |
| 46 | public boolean isThreadAllocatedMemorySupported(); |
| 47 | public boolean isThreadAllocatedMemoryEnabled(); |
| 48 | public boolean isGcNotificationSupported(); |
| 49 | public boolean isRemoteDiagnosticCommandsSupported(); |
| 50 | |
| 51 | // Class Loading Subsystem |
| 52 | public long getTotalClassCount(); |
| 53 | public int getLoadedClassCount(); |
| 54 | public long getUnloadedClassCount(); |
| 55 | public boolean getVerboseClass(); |
| 56 | |
| 57 | // Memory Subsystem |
| 58 | public boolean getVerboseGC(); |
| 59 | |
| 60 | // Runtime Subsystem |
| 61 | public String getManagementVersion(); |
| 62 | public String getVmId(); |
| 63 | public String getVmName(); |
| 64 | public String getVmVendor(); |
| 65 | public String getVmVersion(); |
| 66 | public String getVmSpecName(); |
| 67 | public String getVmSpecVendor(); |
| 68 | public String getVmSpecVersion(); |
| 69 | public String getClassPath(); |
| 70 | public String getLibraryPath(); |
| 71 | public String getBootClassPath(); |
| 72 | public List<String> getVmArguments(); |
| 73 | public long getStartupTime(); |
| 74 | public long getUptime(); |
| 75 | public int getAvailableProcessors(); |
| 76 | |
| 77 | // Compilation Subsystem |
| 78 | public String getCompilerName(); |
| 79 | public long getTotalCompileTime(); |
| 80 | |
| 81 | // Thread Subsystem |
| 82 | public long getTotalThreadCount(); |
| 83 | public int getLiveThreadCount(); |
| 84 | public int getPeakThreadCount(); |
| 85 | public int getDaemonThreadCount(); |
| 86 | |
| 87 | // Operating System |
| 88 | public String getOsName(); |
| 89 | public String getOsArch(); |
| 90 | public String getOsVersion(); |
| 91 |
no outgoing calls
no test coverage detected