public void enable() throws IOException {
synchronized (optOutLock) {
    if (isOptOut()) {
      configuration.set("opt-out",false);
      configuration.save(configurationFile);
    }
    if (task == null) {
      start();
    }
  }
}

public void enable ( ) throws IOException { synchronized ( optOutLock ) { if ( isOptOut ( ) ) { configuration . set ( "opt-out" , false ) ; configuration . save ( configurationFile ) ; } if ( task == null ) { start ( ) ; } } }
enables metrics for the server by setting " opt - out " to false in the config file and starting the metrics task .
