qbit/consul-client/src/main/java/io/advantageous/consul/Consul.java
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);
        }
    }
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.

@param host The Consul API hostname or IP.
@param port The Consul port.
@return A new client.