KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > prevayler > demos > scalability > QueryTestRun


1 package org.prevayler.demos.scalability;
2
3 public class QueryTestRun extends ScalabilityTestRun {
4
5     public QueryTestRun(ScalabilityTestSubject subject, int numberOfObjects, int minThreads, int maxThreads) {
6         super(subject, numberOfObjects, minThreads, maxThreads);
7     }
8
9
10     protected String JavaDoc name() {
11         return "Query Test";
12     }
13
14
15     protected void executeOperation(Object JavaDoc connection, long operationSequence) {
16
17         ((QueryConnection)connection).queryByName("NAME" + (operationSequence % 10000));
18
19     }
20 }
21
Popular Tags