org.objectweb.cjdbc.scenario.horizontal
Class ControllerHasLostAllBackendsFailoverScenario

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.cjdbc.scenario.templates.NoTemplate
          extended byorg.objectweb.cjdbc.scenario.templates.Template
              extended byorg.objectweb.cjdbc.scenario.templates.SimpleHorizontalTemplate
                  extended byorg.objectweb.cjdbc.scenario.templates.HorizontalTemplate
                      extended byorg.objectweb.cjdbc.scenario.horizontal.ControllerHasLostAllBackendsFailoverScenario

public class ControllerHasLostAllBackendsFailoverScenario
extends HorizontalTemplate

We want to test on a read request, that if a controller has lost all its backends, the driver should send the request on the other controller.

Version:
1.0
Author:
Nicolas Modrzyk
See Also:
Serialized Form

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
ControllerHasLostAllBackendsFailoverScenario()
           
 
Method Summary
 void testReadFailover()
          We send a read request on a controller that has no more backend, and we want the other controller to send the result with its backends
 void testWriteFailover()
          We send a write request on a controller that has no more backend, and we want the other controller to send the result with its backends
 
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

ControllerHasLostAllBackendsFailoverScenario

public ControllerHasLostAllBackendsFailoverScenario()
Method Detail

testReadFailover

public void testReadFailover()
                      throws java.lang.Exception
We send a read request on a controller that has no more backend, and we want the other controller to send the result with its backends

Throws:
java.lang.Exception - if fails

testWriteFailover

public void testWriteFailover()
                       throws java.lang.Exception
We send a write request on a controller that has no more backend, and we want the other controller to send the result with its backends

Throws:
java.lang.Exception - if fails


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.