|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.servlets.LoadBalanceStrategy
com.caucho.servlets.LeastConnectionBalanceStrategy
public class LeastConnectionBalanceStrategy
Strategy for selecting the next server
| Field Summary |
|---|
| Fields inherited from class com.caucho.servlets.LoadBalanceStrategy |
|---|
_serverGroup |
| Constructor Summary | |
|---|---|
LeastConnectionBalanceStrategy()
|
|
| Method Summary | |
|---|---|
protected ClusterStream |
openBestServer(int startIndex,
ServerPool oldSrun)
Opens the best load balance server. |
void |
setConnectionWeight(int weight)
|
void |
setCpuWeight(int weight)
|
| Methods inherited from class com.caucho.servlets.LoadBalanceStrategy |
|---|
nextRoundRobin, openServer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LeastConnectionBalanceStrategy()
| Method Detail |
|---|
public void setCpuWeight(int weight)
public void setConnectionWeight(int weight)
protected ClusterStream openBestServer(int startIndex,
ServerPool oldSrun)
openBestServer in class LoadBalanceStrategyoldSrun - on failover, the client which failed with 503
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||