org.apache.ojb.performance
Class PerfTest

java.lang.Object
  extended byorg.apache.ojb.performance.PerfTest

public abstract class PerfTest
extends java.lang.Object

Derivate this class to implement a test instance for the performance test.

Version:
$Id: PerfTest.java,v 1.9 2004/04/05 12:16:22 tomdz Exp $
Author:
Armin Waibel.

Constructor Summary
PerfTest()
           
 
Method Summary
 void addTime(int position, long time)
           
abstract  int articleCount()
          Returns the count of all found PerfArticle in database.
 long getPerfTestId()
           
 java.lang.ThreadGroup getThreadGroup()
           
abstract  PerfHandle newPerfHandle(PerfTest test)
          Returns a new instance of a PerfHandle implementation.
 void performTest()
           
 void registerException(java.lang.String causer, java.lang.Exception e)
           
 void registerPerfMain(PerfMain aPerfMain)
           
abstract  java.lang.String testName()
          Returns the name of the test
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerfTest

public PerfTest()
Method Detail

testName

public abstract java.lang.String testName()
Returns the name of the test


newPerfHandle

public abstract PerfHandle newPerfHandle(PerfTest test)
Returns a new instance of a PerfHandle implementation.


articleCount

public abstract int articleCount()
Returns the count of all found PerfArticle in database. Do not use the cache to get the count! This method is not involved in the performance test methods, thus it's not mandatory to use the api-methods for implementation.


performTest

public void performTest()

registerException

public void registerException(java.lang.String causer,
                              java.lang.Exception e)

addTime

public void addTime(int position,
                    long time)

registerPerfMain

public void registerPerfMain(PerfMain aPerfMain)

getThreadGroup

public java.lang.ThreadGroup getThreadGroup()

getPerfTestId

public long getPerfTestId()


(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2