public static JSONArray getJsonArrayDisks(int diskCount, String baseMountPath, HardwareState hardwareState,
      long capacityInBytes) throws JSONException {
    JSONArray jsonArray = new JSONArray();
    for (int i = 0; i < diskCount; ++i) {
      jsonArray.put(getJsonDisk(baseMountPath + i, hardwareState, capacityInBytes));
    }
    return jsonArray;
  }
Resource state associated with datanode, disk and replica.
ambry-clustermap/src/test/java/com/github/ambry/clustermap/TestUtils.java