org.apache.ojb.broker
Class PerformanceTest3

java.lang.Object
  extended byorg.apache.ojb.broker.PerformanceTest3

public class PerformanceTest3
extends java.lang.Object

stress test against different databases with serveral threads

Author:
Armin Waibel.

Nested Class Summary
(package private)  class PerformanceTest3.PerfomanceTestClientODMG
          ODMG-api test class
(package private)  class PerformanceTest3.PerfomanceTestClientPB
          PB-api test class
(package private)  class PerformanceTest3.TestClient
           
 
Field Summary
 java.lang.ThreadGroup threadGroup
           
 
Constructor Summary
PerformanceTest3()
           
 
Method Summary
 void addTime(int position, long time)
           
 int getArticleCount()
           
 int getFarAwayCount()
           
static int getId()
          generate client made ids
 void init()
          Setting up the test fixture.
protected  void interruptThreads()
          Interrupt the running threads.
static void main(java.lang.String[] args)
           
protected  void runTestClients(PerformanceTest3.TestClient[] runnables)
          Run the threads.
 void testMultithreaded_ODMG_api()
           
 void testMultithreaded_PB_api()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threadGroup

public java.lang.ThreadGroup threadGroup
Constructor Detail

PerformanceTest3

public PerformanceTest3()
Method Detail

main

public static void main(java.lang.String[] args)

interruptThreads

protected void interruptThreads()
Interrupt the running threads.


runTestClients

protected void runTestClients(PerformanceTest3.TestClient[] runnables)
Run the threads.


addTime

public void addTime(int position,
                    long time)

testMultithreaded_PB_api

public void testMultithreaded_PB_api()

testMultithreaded_ODMG_api

public void testMultithreaded_ODMG_api()

getId

public static int getId()
generate client made ids


getArticleCount

public int getArticleCount()

getFarAwayCount

public int getFarAwayCount()

init

public void init()
          throws java.lang.Exception
Setting up the test fixture.

Throws:
java.lang.Exception


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14