org.objectweb.cjdbc.scenario.raidb0
Class Raidb0BasicConnectScenario

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.SimpleRaidb0Template
                  extended byorg.objectweb.cjdbc.scenario.raidb0.Raidb0BasicConnectScenario

public class Raidb0BasicConnectScenario
extends SimpleRaidb0Template

This test will try to update and execute queries on tables that are on different backend each time. It will perform the test in autocommit and transaction mode.

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

Field Summary
(package private)  java.lang.String documentUpdate
           
(package private)  java.lang.String productUpdate
           
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.SimpleRaidb0Template
cm, controller, hm, hm1, hm2, mainVdb
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Constructor Summary
Raidb0BasicConnectScenario()
           
 
Method Summary
private  void completeTest(java.lang.String tableName)
           
private  void queryUpdateTable(java.lang.String tableName, boolean autoCommit, boolean prepare)
           
 void testFailOverWithRandomWaitPool()
          Test CJDBC basic raidb0 with randomwait pool
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.SimpleRaidb0Template
setUp, 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
 

Field Detail

documentUpdate

java.lang.String documentUpdate

productUpdate

java.lang.String productUpdate
Constructor Detail

Raidb0BasicConnectScenario

public Raidb0BasicConnectScenario()
Method Detail

testFailOverWithRandomWaitPool

public void testFailOverWithRandomWaitPool()
                                    throws java.lang.Exception
Test CJDBC basic raidb0 with randomwait pool

Throws:
java.lang.Exception - if fails

completeTest

private void completeTest(java.lang.String tableName)
                   throws java.lang.Exception
Throws:
java.lang.Exception

queryUpdateTable

private void queryUpdateTable(java.lang.String tableName,
                              boolean autoCommit,
                              boolean prepare)
                       throws java.lang.Exception
Throws:
java.lang.Exception


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