Пример #1
0
 public static synchronized DiagnosticCommandMBean getDiagnosticCommandMBean() {
   // Remote Diagnostic Commands may not be supported
   if (hsDiagCommandMBean == null && jvm.isRemoteDiagnosticCommandsSupported()) {
     hsDiagCommandMBean = new DiagnosticCommandImpl(jvm);
   }
   return hsDiagCommandMBean;
 }
Пример #2
0
 public static synchronized CompilationMXBean getCompilationMXBean() {
   if (compileMBean == null && jvm.getCompilerName() != null) {
     compileMBean = new CompilationImpl(jvm);
   }
   return compileMBean;
 }