|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.cloud.loadbalance.AbstractLoadBalanceStrategy
public abstract class AbstractLoadBalanceStrategy
Strategy for selecting the next server
| Constructor Summary | |
|---|---|
protected |
AbstractLoadBalanceStrategy(LoadBalanceClientGroup clientGroup)
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractLoadBalanceStrategy(LoadBalanceClientGroup clientGroup)
| Method Detail |
|---|
protected ClientSocketFactory[] getClientList()
public final ClientSocket openServer(ClientSocketFactory oldClient)
oldClient - on failover, the client which failed with 503
protected 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||