Map<Integer, IdealState> getIdealStateForAllResource(HelixAdmin admin, String dcName) {
    Map<Integer, IdealState> allIdealStates = new TreeMap<>();
    for (String resourceName : admin.getResourcesInCluster(clusterName)) {
      if (!resourceName.matches("\\d+")) {
        info("[{}] Ignoring resource {} as it is not part of the cluster map", dcName.toUpperCase(), resourceName);
        continue;
      }
      Integer resourceId = Integer.parseInt(resourceName);
      IdealState resourceIS = admin.getResourceIdealState(clusterName, resourceName);
      allIdealStates.put(resourceId, resourceIS);
    }
    return allIdealStates;
  }
Fetch IdealStates for all the resource ids.
@param admin The helix admin object.
@param dcName The dc name.
@return
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HelixBootstrapUpgradeUtil.java