org.objectweb.cjdbc.scenario.raidb1.recoverylog
Class TransactionReplayScenario

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.Raidb1RecoveryTemplate
                  extended byorg.objectweb.cjdbc.scenario.raidb1.recoverylog.TransactionReplayScenario

public class TransactionReplayScenario
extends Raidb1RecoveryTemplate

This class defines a TransactionReplayScenario

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

Field Summary
(package private) static int LOOPS
           
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.Raidb1RecoveryTemplate
cm, controller, hm, hm1, hm2, hm3, mainVdb
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Constructor Summary
TransactionReplayScenario()
           
 
Method Summary
private  void executeTestReplay(boolean concurrent, boolean transaction, int loops, int clients)
          Execute the recovery test, with given parameters
private  void joinThreads(java.util.ArrayList threads)
          Joins all the threads in the arraylist
 void testReplayMissingRequestsNoTransactionNoConcurrentRequest()
          Replay with no transactions and no concurrent requests
 void testReplayMissingRequestsTransactionAndConcurrentRequests()
          Replay with no transactions and no concurrent requests
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.Raidb1RecoveryTemplate
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

LOOPS

static final int LOOPS
See Also:
Constant Field Values
Constructor Detail

TransactionReplayScenario

public TransactionReplayScenario()
Method Detail

testReplayMissingRequestsNoTransactionNoConcurrentRequest

public void testReplayMissingRequestsNoTransactionNoConcurrentRequest()
                                                               throws java.lang.Exception
Replay with no transactions and no concurrent requests

Throws:
java.lang.Exception - if fails

testReplayMissingRequestsTransactionAndConcurrentRequests

public void testReplayMissingRequestsTransactionAndConcurrentRequests()
                                                               throws java.lang.Exception
Replay with no transactions and no concurrent requests

Throws:
java.lang.Exception - if fails

executeTestReplay

private void executeTestReplay(boolean concurrent,
                               boolean transaction,
                               int loops,
                               int clients)
                        throws java.lang.Exception
Execute the recovery test, with given parameters

Parameters:
concurrent - should write/read queries be executed during recovery
transaction - should we use transaction
loops - how many times do we loop
Throws:
java.lang.Exception - if fails

joinThreads

private void joinThreads(java.util.ArrayList threads)
                  throws java.lang.Exception
Joins all the threads in the arraylist

Parameters:
threads - a list of the threads
Throws:
java.lang.Exception - if fails


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