|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.cloud.loadbalance.AbstractLoadBalanceStrategy
com.caucho.cloud.loadbalance.LeastConnectionBalanceStrategy
public class LeastConnectionBalanceStrategy
Strategy for selecting the next server
| Constructor Summary | |
|---|---|
LeastConnectionBalanceStrategy(LoadBalanceClientGroup clientGroup)
|
|
| Method Summary | |
|---|---|
protected ClientSocket |
openBestServer(int startIndex,
ClientSocketFactory oldSrun)
Opens the best load balance server. |
void |
setConnectionWeight(int weight)
|
void |
setCpuWeight(int weight)
|
| 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 |
|---|
public LeastConnectionBalanceStrategy(LoadBalanceClientGroup clientGroup)
| Method Detail |
|---|
public void setCpuWeight(int weight)
public void setConnectionWeight(int weight)
protected ClientSocket openBestServer(int startIndex,
ClientSocketFactory oldSrun)
openBestServer in class AbstractLoadBalanceStrategyoldSrun - on failover, the client which failed with 503
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||