public ArrayList<RegionState> getRegionStates() {
    final ArrayList<RegionState> regions = new ArrayList<>(regionsMap.size());
    for (RegionStateNode node : regionsMap.values()) {
      regions.add(node.toRegionState());
    }
    return regions;
  }
Returns A snapshot of region state nodes for all the regions.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStates.java