@Override
  public JSONObject getSnapshot() {
    JSONObject snapshot = new JSONObject();
    snapshot.put(REPLICA_NODE, dataNodeId.getHostname() + ":" + dataNodeId.getPort());
    snapshot.put(REPLICA_PARTITION, getPartitionId().toPathString());
    snapshot.put(REPLICA_PATH, getReplicaPath());
    snapshot.put(CAPACITY_BYTES, getCapacityInBytes());
    return snapshot;
  }
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