|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derbyTesting.perf.clients.BackToBackLoadGenerator
public class BackToBackLoadGenerator
Load generator which creates back-to-back load. This means that you have a number of threads running in parallel, where each thread continuously performs operations with no pauses in between.
| Nested Class Summary | |
|---|---|
private class |
BackToBackLoadGenerator.ClientThread
Thread class which runs a single client and collects results. |
| Field Summary | |
|---|---|
private boolean |
collect
Flag which tells the generator to collect results. |
private long |
startTime
Start time for steady-state phase. |
private boolean |
stop
Flag which tells the generator to stop. |
private long |
stopTime
Stop time for steady-state phase. |
private BackToBackLoadGenerator.ClientThread[] |
threads
The threads executing. |
| Constructor Summary | |
|---|---|
BackToBackLoadGenerator()
|
|
| Method Summary | |
|---|---|
void |
init(Client[] clients)
Initialize the load generator. |
void |
printReport(java.io.PrintStream out)
Print average number of transactions per second. |
void |
startSteadyState()
Start steady state. |
void |
startWarmup()
Start warmup. |
void |
stop()
Stop the load generator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private BackToBackLoadGenerator.ClientThread[] threads
private volatile boolean stop
private volatile boolean collect
private long startTime
private long stopTime
| Constructor Detail |
|---|
public BackToBackLoadGenerator()
| Method Detail |
|---|
public void init(Client[] clients)
init in interface LoadGeneratorclients - the test clients to usepublic void startWarmup()
startWarmup in interface LoadGeneratorpublic void startSteadyState()
startSteadyState in interface LoadGeneratorpublic void stop()
stop in interface LoadGeneratorpublic void printReport(java.io.PrintStream out)
printReport in interface LoadGeneratorout - stream to print the report to
|
Built on Sat 2009-11-28 18:44:18-0800, from revision 885187 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||