Beispiel #1
0
  /** Shut down the metric catcher */
  public void shutdown() {
    logger.info("shutting down...");

    // Pass shutdown to the metricCatcher
    if (metricCatcher != null) metricCatcher.shutdown();

    try {
      // Wait for it shutdown
      metricCatcher.join(1000);
    } catch (InterruptedException e) {
      logger.info("interrupted waiting for thread to shutdown, exiting...");
    }
  }