qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java
public void registerServiceWithScript(final int port,
                                          final String script,
                                          final long interval,
                                          final String serviceName,
                                          final String serviceId,
                                          final String... tags) {
        registerServiceWithScript(null, port, script, interval, serviceName, serviceId, tags);
    }
public void registerServiceWithScript(final int port,
                                          final String script,
                                          final long interval,
                                          final String serviceName,
                                          final String serviceId,
                                          final String... tags) {
        registerServiceWithScript(null, port, script, interval, serviceName, serviceId, tags);
    }
public void registerServiceWithScript ( final int port , final String script , final long interval , final String serviceName , final String serviceId , final String ... tags ) { registerServiceWithScript ( null , port , script , interval , serviceName , serviceId , tags ) ; }
Registers the client as a service with Consul.
Registration enables
the use of check with a script.

@param port        The public facing port of the service to register with Consul.
@param script      Health script for Consul to use.
@param interval    Health script run interval in seconds.
@param serviceName Service name to register.
@param serviceId   Service id to register.
@param tags        Tags to register with.
Registers the client as a service with Consul . Registration enables the use of check with a script .