|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
org.objectweb.cjdbc.scenario.templates.NoTemplate
org.objectweb.cjdbc.scenario.templates.Template
org.objectweb.cjdbc.scenario.templates.SimpleHorizontalTemplate
org.objectweb.cjdbc.scenario.templates.HorizontalTemplate
org.objectweb.cjdbc.scenario.horizontal.TransparentHorizontalBalancingScenario
This class defines a TransparentHorizontalBalancingScenario class
Field Summary |
Fields inherited from class org.objectweb.cjdbc.scenario.templates.SimpleHorizontalTemplate |
cm, controller1, controller2, hm, hm1, hm2, hm3, hm4, mainVdb1, mainVdb2, port1, port2 |
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate |
logger, TEXT_DIR |
Constructor Summary | |
TransparentHorizontalBalancingScenario()
|
Method Summary | |
private int[] |
execute(ControllerInfo[] controllers,
int connections)
Execute an update each time |
void |
testTransparentBalancing()
Test we can still get new connections even if a node failed |
Methods inherited from class org.objectweb.cjdbc.scenario.templates.HorizontalTemplate |
setUp |
Methods inherited from class org.objectweb.cjdbc.scenario.templates.SimpleHorizontalTemplate |
setDatabasesUp, tearDown |
Methods inherited from class org.objectweb.cjdbc.scenario.templates.Template |
getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getHypersonicConnection |
Methods inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate |
getTextPath, getUserDir |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransparentHorizontalBalancingScenario()
Method Detail |
public void testTransparentBalancing() throws java.lang.Exception
java.lang.Exception
- if failsprivate int[] execute(ControllerInfo[] controllers, int connections) throws java.lang.Exception
controllers
- the list of controllers to connect toconnections
- how many connections to ask
java.lang.Exception
- if fails
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |