org.objectweb.cjdbc.scenario.raidb1.recoverylog
Class TransactionReplayScenario
java.lang.Object
TestCase
org.objectweb.cjdbc.scenario.templates.NoTemplate
org.objectweb.cjdbc.scenario.templates.Template
org.objectweb.cjdbc.scenario.templates.Raidb1RecoveryTemplate
org.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOOPS
static final int LOOPS
- See Also:
- Constant Field Values
TransactionReplayScenario
public TransactionReplayScenario()
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 recoverytransaction
- should we use transactionloops
- 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.