public static String getLocalHost() {
    try {
      return InetAddress.getByName("localhost").getCanonicalHostName().toLowerCase();
    } catch (UnknownHostException e) {
      // this should never happen
      return null;
    }
  }
Resource state associated with datanode, disk and replica.
ambry-clustermap/src/test/java/com/github/ambry/clustermap/TestUtils.java