equal
deleted
inserted
replaced
177 } else { |
177 } else { |
178 return jvmCapabilities.stringValue().charAt(IS_ATTACHABLE) == '1'; |
178 return jvmCapabilities.stringValue().charAt(IS_ATTACHABLE) == '1'; |
179 } |
179 } |
180 } |
180 } |
181 |
181 |
182 /** |
|
183 * Returns true if the target VM is a kernel VM |
|
184 * |
|
185 * @param vm the target MonitoredVm |
|
186 */ |
|
187 public static boolean isKernelVM(MonitoredVm vm) throws MonitorException { |
|
188 StringMonitor jvmCapabilities = |
|
189 (StringMonitor)vm.findByName("sun.rt.jvmCapabilities"); |
|
190 if (jvmCapabilities == null) { |
|
191 return false; |
|
192 } else { |
|
193 return jvmCapabilities.stringValue().charAt(IS_KERNEL_VM) == '1'; |
|
194 } |
|
195 } |
|
196 } |
182 } |