|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.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
This class defines a TransactionReplayScenario
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 |
Fields inherited from class junit.framework.TestCase |
|
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 junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static final int LOOPS
Constructor Detail |
public TransactionReplayScenario()
Method Detail |
public void testReplayMissingRequestsNoTransactionNoConcurrentRequest() throws java.lang.Exception
java.lang.Exception
- if failspublic void testReplayMissingRequestsTransactionAndConcurrentRequests() throws java.lang.Exception
java.lang.Exception
- if failsprivate void executeTestReplay(boolean concurrent, boolean transaction, int loops, int clients) throws java.lang.Exception
concurrent
- should write/read queries be executed during recoverytransaction
- should we use transactionloops
- how many times do we loop
java.lang.Exception
- if failsprivate void joinThreads(java.util.ArrayList threads) throws java.lang.Exception
threads
- a list of the threads
java.lang.Exception
- if fails
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |