Class NodeOnlineChecker

java.lang.Object
com.predic8.membrane.core.interceptor.balancer.NodeOnlineChecker

public class NodeOnlineChecker extends Object
  • Constructor Details

    • NodeOnlineChecker

      public NodeOnlineChecker()
  • Method Details

    • getPingTimeoutInSeconds

      public int getPingTimeoutInSeconds()
    • setPingTimeoutInSeconds

      public void setPingTimeoutInSeconds(int pingTimeoutInSeconds)
    • init

      public void init(Router router)
    • handle

      public void handle(Exchange exc)
    • handleNodeBadStatusCode

      public void handleNodeBadStatusCode(Exchange exc, int destination)
    • handleNodeException

      public void handleNodeException(Exchange exc, int destination)
    • createBadNodeWithSSLandProtocol

      public com.predic8.membrane.core.interceptor.balancer.NodeOnlineChecker.BadNode createBadNodeWithSSLandProtocol(Exchange exc, int destination)
    • getNodeFromExchange

      public Node getNodeFromExchange(Exchange exc, int destination)
    • getDestinationAsString

      public String getDestinationAsString(Exchange exc, int destination)
    • setNodeDown

      public void setNodeDown(Exchange exc, int destination)
    • putNodesBackUp

      public void putNodesBackUp()
    • getLbi

      public LoadBalancingInterceptor getLbi()
    • setLbi

      public void setLbi(LoadBalancingInterceptor lbi)
    • 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