org.apache.ojb.broker
Class PerformanceTest2

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

public class PerformanceTest2
extends java.lang.Object

stress test against one database using several threads

Version:
$Id: PerformanceTest2.java,v 1.21 2003/09/13 23:50:40 olegnitz Exp $
Author:
Armin Waibel.

Nested Class Summary
(package private)  class PerformanceTest2.PerfomanceTestClientODMG
          ODMG-api test class
(package private)  class PerformanceTest2.PerfomanceTestClientOTM
          OTM-api test class
(package private)  class PerformanceTest2.PerfomanceTestClientPB
          PB-api test class
(package private)  class PerformanceTest2.TestClient
           
 
Constructor Summary
PerformanceTest2()
           
 
Method Summary
 void addTime(int position, long time)
           
 int getArticleCount()
           
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(PerformanceTest2.TestClient[] runnables)
          Run the threads.
 void testMultithreaded_ODMG_api()
           
 void testMultithreaded_OTM_api()
           
 void testMultithreaded_PB_api()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceTest2

public PerformanceTest2()
Method Detail

interruptThreads

protected void interruptThreads()
Interrupt the running threads.


runTestClients

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


getId

public static int getId()
generate client made ids


getArticleCount

public int getArticleCount()

addTime

public void addTime(int position,
                    long time)

init

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

Throws:
java.lang.Exception

main

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

testMultithreaded_PB_api

public void testMultithreaded_PB_api()

testMultithreaded_ODMG_api

public void testMultithreaded_ODMG_api()

testMultithreaded_OTM_api

public void testMultithreaded_OTM_api()


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