Top Fields Methods
io.undertow.server.handlers.proxy.mod_cluster

public Interface NodeHealthChecker

Imports
io.undertow.client.ClientResponse

Author
Emanuel Muckenhuber

Field Summary

Modifier and TypeField and Description
public static final NodeHealthChecker
NO_CHECK

Receiving a response is a success.

public static final NodeHealthChecker
OK

Check that the response code is 2xx to 3xx.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the response from the node is healthy
checkResponse
(final ClientResponse
the client response
response
)

Check the response of a health check.

Field Detail

NO_CHECKback to summary
public static final NodeHealthChecker NO_CHECK

Receiving a response is a success.

OKback to summary
public static final NodeHealthChecker OK

Check that the response code is 2xx to 3xx.

Method Detail

checkResponseback to summary
public boolean checkResponse(final ClientResponse response)

Check the response of a health check.

Parameters
response:ClientResponse

the client response

Returns:boolean

true if the response from the node is healthy