org.apache.geronimo.transaction.log
Class AbstractLogTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.geronimo.transaction.log.AbstractLogTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
HOWLLogTest

public abstract class AbstractLogTest
extends junit.framework.TestCase

Version:
$Rev: 54973 $ $Date: 2004-10-17 16:06:11 -0400 (Sun, 17 Oct 2004) $

Field Summary
(package private)  java.lang.Object mutex
           
private  java.util.List names
           
private  java.io.Writer resultsCSV
           
private  java.io.Writer resultsXML
           
private  java.lang.Object startBarrier
           
private  int startedThreads
           
private  java.lang.Object stopBarrier
           
private  int stoppedThreads
           
(package private)  long totalDuration
           
(package private)  long totalXidCount
           
private  javax.transaction.xa.Xid xid
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
AbstractLogTest()
           
 
Method Summary
protected abstract  void closeTransactionLog(TransactionLog transactionLog)
           
protected abstract  TransactionLog createTransactionLog()
           
protected abstract  java.lang.String getResultFileName()
           
private  long journalTest(TransactionLog logger, int workers, int xidCount)
           
(package private)  void printSpeedReport(TransactionLog logger, long startTime, long stopTime, int workers, int xidCount)
           
 void testDummy()
           
 void testTransactionLog()
           
 long testTransactionLog(int workers, int xidCount)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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

startBarrier

private java.lang.Object startBarrier

stopBarrier

private java.lang.Object stopBarrier

startedThreads

private int startedThreads

stoppedThreads

private int stoppedThreads

totalDuration

long totalDuration

xid

private javax.transaction.xa.Xid xid

names

private java.util.List names

mutex

final java.lang.Object mutex

totalXidCount

long totalXidCount

resultsXML

private java.io.Writer resultsXML

resultsCSV

private java.io.Writer resultsCSV
Constructor Detail

AbstractLogTest

public AbstractLogTest()
Method Detail

testDummy

public void testDummy()
               throws java.lang.Exception
Throws:
java.lang.Exception

testTransactionLog

public void testTransactionLog()
                        throws java.lang.Exception
Throws:
java.lang.Exception

getResultFileName

protected abstract java.lang.String getResultFileName()

testTransactionLog

public long testTransactionLog(int workers,
                               int xidCount)
                        throws java.lang.Exception
Throws:
java.lang.Exception

closeTransactionLog

protected abstract void closeTransactionLog(TransactionLog transactionLog)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

createTransactionLog

protected abstract TransactionLog createTransactionLog()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

journalTest

private long journalTest(TransactionLog logger,
                         int workers,
                         int xidCount)
                  throws java.lang.Exception
Throws:
java.lang.Exception

printSpeedReport

void printSpeedReport(TransactionLog logger,
                      long startTime,
                      long stopTime,
                      int workers,
                      int xidCount)
                throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2005 Apache Software Foundation. All Rights Reserved.