|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRule
org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRoundRobin
Implements a round-robin strategy for CREATE TABLE
statements.
| Field Summary | |
private int |
index
|
| Fields inherited from class org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRule |
backendList, nbOfNodes, policy, tableName |
| Constructor Summary | |
CreateTableRoundRobin()
Creates a new CreateTableRoundRobin. |
|
CreateTableRoundRobin(java.util.ArrayList backendList)
Creates a new CreateTableRoundRobin. |
|
| 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.createtable.CreateTableRule |
addBackendName, getBackendList, getNumberOfNodes, getPolicy, getTableName, getXml, isDefaultRule, setNumberOfNodes, setPolicy, setTableName |
| 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 CreateTableRoundRobin()
CreateTableRoundRobin.
public CreateTableRoundRobin(java.util.ArrayList backendList)
CreateTableRoundRobin.
backendList - ArrayList of DatabaseBackend| Method Detail |
public java.util.ArrayList getBackends(java.util.ArrayList backends)
throws CreateTableException
CreateTableRule
getBackends in class CreateTableRulebackends - backends to choose from
Arraylist of choosen DatabaseBackend
CreateTableException - if the rule cannot be appliedCreateTableRule.getBackends(ArrayList)public java.lang.String getInformation()
CreateTableRule
getInformation in class CreateTableRuleString valueCreateTableRule.getInformation()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||