|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 CreateTableRule
backends
- backends to choose from
Arraylist
of choosen DatabaseBackend
CreateTableException
- in some specific implementations (not this
one)CreateTableRule.getBackends(ArrayList)
public java.lang.String getInformation()
CreateTableRule
getInformation
in class CreateTableRule
String
valueCreateTableRule.getInformation()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |