@Override
  public List<ReplicaId> getPeerReplicaIds() {
    return partitionId.getReplicaIds()
        .stream()
        .filter(replica -> replica.getDataNodeId().compareTo(dataNodeId) != 0)
        .collect(Collectors.toList());
  }
Instantiate an CloudReplica instance.
@param partitionId the {@link PartitionId} of which this is a replica.
@param dataNodeId which hosts this replica.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/CloudReplica.java