@Override
  public Map<ReplicaState, List<ReplicaId>> getReplicaIdsByStates(Set<ReplicaState> states, String dcName) {
    Map<ReplicaState, List<ReplicaId>> replicaByState = new HashMap<>();
    for (ReplicaState state : states) {
      List<ReplicaId> replicaIds = new ArrayList<>();
      // for static clustermap we assume all replicas are in StandBy state.
      if (state == ReplicaState.STANDBY) {
        replicaIds.addAll(replicas.stream()
            .filter(k -> dcName == null || k.getDataNodeId().getDatacenterName().equals(dcName))
            .collect(Collectors.toList()));
      }
      replicaByState.put(state, replicaIds);
    }
    return replicaByState;
  }
An extension of {@link PartitionId} to be used within the {@link StaticClusterManager}.

A Partition is the unit of data management in Ambry. Each Partition is uniquely identifiable by an ID. Partitions
consist of one or more {@link Replica}s. Replicas ensure that a Partition is available and reliable.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/Partition.java