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