org.hibernate.envers.test.performance
Class AbstractPerformanceTest

java.lang.Object
  extended by org.hibernate.envers.test.AbstractEnversTest
      extended by org.hibernate.envers.test.AbstractEntityTest
          extended by org.hibernate.envers.test.performance.AbstractPerformanceTest
Direct Known Subclasses:
ComplexInsertPerformance, InsertsOneTransactionPerformance, InsertsPerformance, UpdatesPerformance

public abstract class AbstractPerformanceTest
extends AbstractEntityTest


Constructor Summary
AbstractPerformanceTest()
           
 
Method Summary
protected abstract  void doTest()
           
protected  String getSecondsString(long milliseconds)
           
protected  void reset()
           
 long run(int numberOfRuns, List<Long> results)
           
protected  void start()
           
protected  void stop()
           
 void test(int numberOfRuns)
           
 
Methods inherited from class org.hibernate.envers.test.AbstractEntityTest
addConfigurationProperties, close, configure, getAuditReader, getCfg, getEntityManager, init, init, newEntityManager
 
Methods inherited from class org.hibernate.envers.test.AbstractEnversTest
data, getAuditStrategy, setTestData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPerformanceTest

public AbstractPerformanceTest()
Method Detail

getSecondsString

protected String getSecondsString(long milliseconds)

doTest

protected abstract void doTest()

start

protected void start()

stop

protected void stop()

reset

protected void reset()

run

public long run(int numberOfRuns,
                List<Long> results)

test

public void test(int numberOfRuns)
          throws IOException
Throws:
IOException


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.