code: @Override
    public List<HRegionInfo> getAllRegionInfos(TableName tableName) throws IOException {
      List<HRegionInfo> regionInfos = new CopyOnWriteArrayList<>();
      for (HRegionLocation location : getRegionLocator(tableName).getAllRegionLocations()) {
        regionInfos.add(location.getRegionInfo());
      }
      return regionInfos;
    }
docs: /* (non-Javadoc)
  @see org.apache.hadoop.hbase.client.CommonConnection#getAllRegionInfos(org.apache.hadoop.hbase.TableName)