com.caucho.cloud.loadbalance
Class RoundRobinBalanceStrategy

java.lang.Object
  extended by com.caucho.cloud.loadbalance.AbstractLoadBalanceStrategy
      extended by com.caucho.cloud.loadbalance.RoundRobinBalanceStrategy

public class RoundRobinBalanceStrategy
extends AbstractLoadBalanceStrategy

Strategy for selecting the next server


Constructor Summary
protected RoundRobinBalanceStrategy(LoadBalanceClientGroup clientGroup)
           
 
Method Summary
protected  ClientSocket openBestServer(int startIndex, ClientSocketFactory oldSrun)
          Opens the best load balance server.
 
Methods inherited from class com.caucho.cloud.loadbalance.AbstractLoadBalanceStrategy
getClientList, nextRoundRobin, openServer, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoundRobinBalanceStrategy

protected RoundRobinBalanceStrategy(LoadBalanceClientGroup clientGroup)
Method Detail

openBestServer

protected ClientSocket openBestServer(int startIndex,
                                      ClientSocketFactory oldSrun)
Opens the best load balance server.

Overrides:
openBestServer in class AbstractLoadBalanceStrategy
oldSrun - on failover, the client which failed with 503