private String getDiskString() {
    if (mounts == null) {
      return null;
    }
    StringBuilder ret = new StringBuilder();
    for (DiskInfo diskInfo : mounts) {
      ret.append("(").append(diskInfo).append(")");
    }
    return ret.toString();
  }
Data model for Ambari Agent to send hardware profile to Ambari Server.
ambari-server/src/main/java/org/apache/ambari/server/agent/HostInfo.java