|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.cjdbc.controller.loadbalancer.policies.errorchecking.ErrorCheckingPolicy
org.objectweb.cjdbc.controller.loadbalancer.policies.errorchecking.ErrorCheckingRoundRobin
Chooses the number of nodes nodes for error checking using a round-robin algorithm.
| Field Summary | |
private int |
index
Round-robin index. |
| Fields inherited from class org.objectweb.cjdbc.controller.loadbalancer.policies.errorchecking.ErrorCheckingPolicy |
ALL, nbOfNodes, policy, RANDOM, ROUND_ROBIN |
| Constructor Summary | |
ErrorCheckingRoundRobin(int numberOfNodes)
Creates a new ErrorCheckingRoundRobin instance. |
|
| Method Summary | |
java.util.ArrayList |
getBackends(java.util.ArrayList backends)
Pickups backends from the given backends arraylist according to the current rule policy. |
java.lang.String |
getInformation()
Gives information about the current policy. |
| Methods inherited from class org.objectweb.cjdbc.controller.loadbalancer.policies.errorchecking.ErrorCheckingPolicy |
getNumberOfNodes, getPolicy, getXml, setNumberOfNodes, setPolicy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int index
| Constructor Detail |
public ErrorCheckingRoundRobin(int numberOfNodes)
ErrorCheckingRoundRobin instance.
numberOfNodes - number of nodes| Method Detail |
public java.util.ArrayList getBackends(java.util.ArrayList backends)
throws ErrorCheckingException
ErrorCheckingPolicy
getBackends in class ErrorCheckingPolicybackends - backends to choose from
DatabaseBackend
ErrorCheckingException - if the rule cannot be appliedErrorCheckingPolicy.getBackends(ArrayList)public java.lang.String getInformation()
ErrorCheckingPolicy
getInformation in class ErrorCheckingPolicyString valueErrorCheckingPolicy.getInformation()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||