Example #1
0
  protected void enableJMX() {

    if (jmxManager == null) {
      synchronized (serverConfig) {
        if (jmxManager == null) {
          jmxManager = GrizzlyJmxManager.instance();
        }
      }
    }
    jmxManager.registerAtRoot(getManagementObject(false), serverConfig.getName());
  }
Example #2
0
  protected void disableJMX() {

    if (jmxManager != null) {
      jmxManager.deregister(getManagementObject(true));
    }
  }