Interface NodeHealthChecker


public interface NodeHealthChecker
Author:
Emanuel Muckenhuber
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NodeHealthChecker
    Receiving a response is a success.
    static final NodeHealthChecker
    Check that the response code is 2xx to 3xx.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check the response of a health check.
  • Field Details

    • NO_CHECK

      static final NodeHealthChecker NO_CHECK
      Receiving a response is a success.
    • OK

      static final NodeHealthChecker OK
      Check that the response code is 2xx to 3xx.
  • Method Details

    • checkResponse

      boolean checkResponse(ClientResponse response)
      Check the response of a health check.
      Parameters:
      response - the client response
      Returns:
      true if the response from the node is healthy