protected void enableJMX() { if (jmxManager == null) { synchronized (serverConfig) { if (jmxManager == null) { jmxManager = GrizzlyJmxManager.instance(); } } } jmxManager.registerAtRoot(getManagementObject(false), serverConfig.getName()); }
protected void disableJMX() { if (jmxManager != null) { jmxManager.deregister(getManagementObject(true)); } }