public synchronized void shutdown() {
    if (this.monitorThread != null) {
      monitorThread.interrupt();
    }
  }
Create a task filter according to a given filter type.
@param filter type of monitored task
@return a task filter
hbase-server/src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java