org.prevayler.demos.scalability
Class QueryTestRun

java.lang.Object
  extended by org.prevayler.demos.scalability.QueryTestRun

public class QueryTestRun
extends Object


Field Summary
protected  int numberOfObjects
           
 
Constructor Summary
QueryTestRun(ScalabilityTestSubject subject, int numberOfObjects, int minThreads, int maxThreads)
           
 
Method Summary
protected  void executeOperation(Object connection, long operationSequence)
           
 double getOperationsPerSecond()
           
 String getResult()
           
protected  String name()
           
protected  void prepare()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numberOfObjects

protected final int numberOfObjects
Constructor Detail

QueryTestRun

public QueryTestRun(ScalabilityTestSubject subject,
                    int numberOfObjects,
                    int minThreads,
                    int maxThreads)
Method Detail

name

protected String name()
Returns:
The name of the test to be executed. Example: "Prevayler Query Test".

executeOperation

protected void executeOperation(Object connection,
                                long operationSequence)

getResult

public String getResult()
Returns:
Example: "123.12 operations/second (12 threads)".

getOperationsPerSecond

public double getOperationsPerSecond()

prepare

protected void prepare()


Copyright © 2001-2013. All Rights Reserved.