Beispiel #1
0
 public Object getManagementObject(boolean clear) {
   if (!clear && managementObject == null) {
     synchronized (serverConfig) {
       if (managementObject == null) {
         managementObject =
             MonitoringUtils.loadJmxObject(
                 "org.glassfish.grizzly.http.server.jmx.HttpServer", this, HttpServer.class);
       }
     }
   }
   try {
     return managementObject;
   } finally {
     if (clear) {
       managementObject = null;
     }
   }
 }
 protected Object createJmxManagementObject() {
   return MonitoringUtils.loadJmxObject(
       "org.glassfish.grizzly.http.server.filecache.jmx.FileCache", this, FileCache.class);
 }