public Map<RegionInfo, ServerName> getRegionAssignments() {
    final HashMap<RegionInfo, ServerName> assignments = new HashMap<RegionInfo, ServerName>();
    for (RegionStateNode node : regionsMap.values()) {
      assignments.put(node.getRegionInfo(), node.getRegionLocation());
    }
    return assignments;
  }
Returns True if region is offline (In OFFLINE or CLOSED state).
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStates.java