public abstract class AbstractLoadBalanceStrategy
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected static java.util.logging.Logger | log | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractLoadBalanceStrategy(LoadBalanceClientGroup clientGroup) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected ClientSocketFactory[] | getClientList() | 
| protected int | nextRoundRobin()Returns the index of the next round-robin server. | 
| protected ClientSocket | openBestServer(int startIndex,
              ClientSocketFactory oldClient)Opens the best load balance server. | 
| ClientSocket | openServer(ClientSocketFactory oldClient)Opens the next available server. | 
| java.lang.String | toString() | 
protected AbstractLoadBalanceStrategy(LoadBalanceClientGroup clientGroup)
protected ClientSocketFactory[] getClientList()
public final ClientSocket openServer(ClientSocketFactory oldClient)
oldClient - on failover, the client which failed with 503protected ClientSocket openBestServer(int startIndex, ClientSocketFactory oldClient)
oldClient - on failover, the client which failed with 503protected int nextRoundRobin()
public java.lang.String toString()
toString in class java.lang.Object