Class NodeOnlineChecker
java.lang.Object
com.predic8.membrane.core.interceptor.balancer.NodeOnlineChecker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.predic8.membrane.core.interceptor.balancer.NodeOnlineChecker.BadNodecreateBadNodeWithSSLandProtocol(Exchange exc, int destination) getDestinationAsString(Exchange exc, int destination) getLbi()intgetNodeFromExchange(Exchange exc, int destination) intintvoidvoidhandleNodeBadStatusCode(Exchange exc, int destination) voidhandleNodeException(Exchange exc, int destination) voidvoidvoidvoidsetNodeCounterLimit5XX(int nodeCounterLimit5XX) voidsetNodeDown(Exchange exc, int destination) voidsetPingTimeoutInSeconds(int pingTimeoutInSeconds) voidsetRetryTimeInSeconds(int retryTimeInSeconds)
-
Constructor Details
-
NodeOnlineChecker
public NodeOnlineChecker()
-
-
Method Details
-
getPingTimeoutInSeconds
public int getPingTimeoutInSeconds() -
setPingTimeoutInSeconds
public void setPingTimeoutInSeconds(int pingTimeoutInSeconds) -
init
-
handle
-
handleNodeBadStatusCode
-
handleNodeException
-
createBadNodeWithSSLandProtocol
public com.predic8.membrane.core.interceptor.balancer.NodeOnlineChecker.BadNode createBadNodeWithSSLandProtocol(Exchange exc, int destination) -
getNodeFromExchange
-
getDestinationAsString
-
setNodeDown
-
putNodesBackUp
public void putNodesBackUp() -
getLbi
-
setLbi
-
getRetryTimeInSeconds
public int getRetryTimeInSeconds() -
setRetryTimeInSeconds
public void setRetryTimeInSeconds(int retryTimeInSeconds) - Default
- -1
- Description
- the time in seconds until offline nodes are checked again. -1 to disable
-
getNodeCounterLimit5XX
public int getNodeCounterLimit5XX() -
setNodeCounterLimit5XX
public void setNodeCounterLimit5XX(int nodeCounterLimit5XX) - Default
- 10
- Description
- the number of times a node has to fail with a 5XX statuscode until it is taken down
-