private long calculateAllocatedRawCapacityInBytes() {
    long allocatedRawCapacityInBytes = 0;
    for (Partition partition : partitionMap.values()) {
      allocatedRawCapacityInBytes += partition.getAllocatedRawCapacityInBytes();
    }
    return allocatedRawCapacityInBytes;
  }
Constructor for initial PartitionLayout
@param hardwareLayout the {@link JSONObject} that represents the partition layout
@param clusterMapConfig the {@link ClusterMapConfig} to use.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/PartitionLayout.java