public static void stop() {
    stopped.set(true);
    ScheduledFuture future = fut.get();
    future.cancel(false);
  }
Stops the clearing of JMX metrics and restarting the Hadoop metrics system. This is needed for
some test environments where we manually inject sources or sinks dynamically.
hbase-hadoop-compat/src/main/java/org/apache/hadoop/metrics2/impl/JmxCacheBuster.java