public static Consul consul ( final String host , final int port ) { try { return new Consul ( new URL ( "http" , host , port , "" ) . toString ( ) ) ; } catch ( MalformedURLException e ) { throw new ConsulException ( "Bad Consul URL" , e ) ; } }
Creates a new client given a host and a port .