public void stop() {
    shouldRun = false;
    monitorThread.interrupt();
    try {
      monitorThread.join();
    } catch (InterruptedException e) {
      Thread.currentThread().interrupt();
    }
  }
log INFO if we detect a pause longer than this threshold
hbase-server/src/main/java/org/apache/hadoop/hbase/util/JvmPauseMonitor.java