code: public static HostPort parseHostPort(String string) {
      String[] strings = string.split("_");
      return new HostPort(strings[0], Integer.parseInt(strings[1]));
    }
docs: Parse a host_port string to construct the HostPost object.
  
  @param string the host_port string
  @return the HostPort object