public ConsulResponse<List<HealthCheck>> getNodeChecks(final String node,
                                                           final String datacenter,
                                                           final String tag,
                                                           final RequestOptions requestOptions) {


        final URI uri = createURI("/node/" + node);


        final HttpRequestBuilder httpRequestBuilder = RequestUtils
                .getHttpRequestBuilder(datacenter, tag, requestOptions, "");


        final HTTP.Response httpResponse = HTTP.getResponse(uri.toString() + "?" + httpRequestBuilder.paramString());

        if (httpResponse == null || httpResponse.code() != 200) {
            die("Unable to retrieve the service", uri, httpResponse);
        }

        return RequestUtils.consulResponseList(HealthCheck.class, httpResponse);

    }
public ConsulResponse<List<HealthCheck>> getNodeChecks(final String node,
                                                           final String datacenter,
                                                           final String tag,
                                                           final RequestOptions requestOptions) {


        final URI uri = createURI("/node/" + node);


        final HttpRequestBuilder httpRequestBuilder = RequestUtils
                .getHttpRequestBuilder(datacenter, tag, requestOptions, "");


        final HTTP.Response httpResponse = HTTP.getResponse(uri.toString() + "?" + httpRequestBuilder.paramString());

        if (httpResponse == null || httpResponse.code() != 200) {
            die("Unable to retrieve the service", uri, httpResponse);
        }

        return RequestUtils.consulResponseList(HealthCheck.class, httpResponse);

    }
public ConsulResponse < List < HealthCheck > > getNodeChecks ( final String node , final String datacenter , final String tag , final RequestOptions requestOptions ) { final URI uri = createURI ( "/node/" + node ) ; final HttpRequestBuilder httpRequestBuilder = RequestUtils . getHttpRequestBuilder ( datacenter , tag , requestOptions , "" ) ; final HTTP . Response httpResponse = HTTP . getResponse ( uri . toString ( ) + "?" + httpRequestBuilder . paramString ( ) ) ; if ( httpResponse == null || httpResponse . code ( ) != 200 ) { die ( "Unable to retrieve the service" , uri , httpResponse ) ; } return RequestUtils . consulResponseList ( HealthCheck . class , httpResponse ) ; }
Retrieves the healthchecks for a node in a given datacenter with {@link io.advantageous.consul.domain.option.RequestOptions}.
<p>
GET /v1/health/node/{node}?dc={datacenter}

@param node           node
@param datacenter     datacenter
@param tag            tag
@param requestOptions The Query Options to use.
@return A {@link io.advantageous.consul.domain.ConsulResponse} containing a list of
{@link io.advantageous.consul.domain.HealthCheck} objects.
Retrieves the healthchecks for a node in a given datacenter with { @link io . advantageous . consul . domain . option . RequestOptions } . <p > GET / v1 / health / node / { node } ?dc = { datacenter }