100 }
101
102 public boolean isGcNotificationSupported() {
103 boolean isSupported = true;
104 try {
105 Class.forName("com.sun.management.GarbageCollectorMXBean");
106 } catch (ClassNotFoundException x) {
107 isSupported = false;
108 }
109 return isSupported;
110 }
111
112 public boolean isRemoteDiagnosticCommandsSupported() {
113 return remoteDiagnosticCommandsSupport;
114 }
115
116 public native boolean isThreadContentionMonitoringEnabled();
117 public native boolean isThreadCpuTimeEnabled();
118 public native boolean isThreadAllocatedMemoryEnabled();
119
120 // Class Loading Subsystem
121 public int getLoadedClassCount() {
122 long count = getTotalClassCount() - getUnloadedClassCount();
123 return (int) count;
124 }
125 public native long getTotalClassCount();
126 public native long getUnloadedClassCount();
127
128 public native boolean getVerboseClass();
129
130 // Memory Subsystem
131 public native boolean getVerboseGC();
132
133 // Runtime Subsystem
134 public String getManagementVersion() {
135 return version;
136 }
137
138 public String getVmId() {
139 int pid = getProcessId();
|
100 }
101
102 public boolean isGcNotificationSupported() {
103 boolean isSupported = true;
104 try {
105 Class.forName("com.sun.management.GarbageCollectorMXBean");
106 } catch (ClassNotFoundException x) {
107 isSupported = false;
108 }
109 return isSupported;
110 }
111
112 public boolean isRemoteDiagnosticCommandsSupported() {
113 return remoteDiagnosticCommandsSupport;
114 }
115
116 public native boolean isThreadContentionMonitoringEnabled();
117 public native boolean isThreadCpuTimeEnabled();
118 public native boolean isThreadAllocatedMemoryEnabled();
119
120 // AOT Subsystem
121 public native String getAOTMode();
122 public native boolean isAOTRecording();
123 public native long getAOTRecordingDuration();
124 public native boolean endAOTRecording();
125
126 // Class Loading Subsystem
127 public int getLoadedClassCount() {
128 long count = getTotalClassCount() - getUnloadedClassCount();
129 return (int) count;
130 }
131 public native long getTotalClassCount();
132 public native long getUnloadedClassCount();
133
134 public native boolean getVerboseClass();
135
136 // Memory Subsystem
137 public native boolean getVerboseGC();
138
139 // Runtime Subsystem
140 public String getManagementVersion() {
141 return version;
142 }
143
144 public String getVmId() {
145 int pid = getProcessId();
|