@Override
  public int run(String[] args) throws Exception {
    int index = parseArgs(args);
    String[] monitorTargets = null;

    if (index >= 0) {
      int length = args.length - index;
      monitorTargets = new String[length];
      System.arraycopy(args, index, monitorTargets, 0, length);
    }
    if (interval > 0) {
      // Only show the web page in daemon mode
      putUpWebUI();
    }
    if (zookeeperMode) {
      return checkZooKeeper();
    } else if (regionServerMode) {
      return checkRegionServers(monitorTargets);
    } else {
      return checkRegions(monitorTargets);
    }
  }
This is a Map of table to timeout. The timeout is for reading all regions in the table; i.e. we
aggregate time to fetch each region and it needs to be less than this value else we log an
ERROR.
hbase-server/src/main/java/org/apache/hadoop/hbase/tool/CanaryTool.java