public class BackToBackLoadGenerator extends java.lang.Object implements LoadGenerator
Modifier and Type | Class and Description |
---|---|
private class |
BackToBackLoadGenerator.ClientThread
Thread class which runs a single client and collects results.
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BackToBackLoadGenerator() |
Modifier and Type | Method and Description |
---|---|
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.
|
private BackToBackLoadGenerator.ClientThread[] threads
private volatile boolean stop
private volatile boolean collect
private long startTime
private long stopTime
public void init(Client[] clients)
init
in interface LoadGenerator
clients
- the test clients to usepublic void startWarmup()
startWarmup
in interface LoadGenerator
public void startSteadyState()
startSteadyState
in interface LoadGenerator
public void stop()
stop
in interface LoadGenerator
public void printReport(java.io.PrintStream out)
printReport
in interface LoadGenerator
out
- stream to print the report toApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.