Class PerfTestRun
java.lang.Object
org.camunda.bpm.qa.performance.engine.framework.PerfTestRun
- All Implemented Interfaces:
Runnable
,PerfTestRunContext
An individual run of a performance test. Holds all state related to a test run.
- Author:
- Daniel Meyer
-
Field Summary
Modifier and TypeFieldDescriptionprotected PerfTestStep
protected boolean
protected long
protected PerfTestRunner
protected long
protected AtomicInteger
protected long
protected long
Fields inherited from interface org.camunda.bpm.qa.performance.engine.framework.PerfTestRunContext
currentContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
endRun()
long
long
long
long
<T> T
getVariable
(String name) boolean
Sets the run into waiting state and returns if the run was already signaled.boolean
Signals the run and returns if the run was already waiting for a signal.void
logStepResult
(Object stepResult) protected void
protected void
protected void
protected void
protected void
pauseRun()
void
run()
void
setCurrentStep
(PerfTestStep currentStep) void
setVariable
(String name, Object value) void
startRun()
-
Field Details
-
isStarted
protected boolean isStarted -
runStartTime
protected long runStartTime -
runEndTime
protected long runEndTime -
stepStartTime
protected long stepStartTime -
stepEndTime
protected long stepEndTime -
currentStep
-
state
-
runner
-
runContext
-
-
Constructor Details
-
PerfTestRun
-
-
Method Details
-
startRun
public void startRun() -
endRun
public void endRun() -
run
public void run() -
continueRun
protected void continueRun() -
pauseRun
protected void pauseRun() -
getVariable
- Specified by:
getVariable
in interfacePerfTestRunContext
-
setVariable
- Specified by:
setVariable
in interfacePerfTestRunContext
-
setCurrentStep
-
getRunStartTime
public long getRunStartTime() -
getRunEndTime
public long getRunEndTime() -
getCurrentStep
-
getRunner
-
getStepEndTime
public long getStepEndTime() -
getStepStartTime
public long getStepStartTime() -
isAlreadySignaled
public boolean isAlreadySignaled()Sets the run into waiting state and returns if the run was already signaled. Note: This method will change the state of the run to waiting.- Returns:
- true if the run was already signaled, false otherwise
-
isWaitingForSignal
public boolean isWaitingForSignal()Signals the run and returns if the run was already waiting for a signal. Note: This method will change the state of the run to signaled.- Returns:
- true if the run was waiting, false otherwise
-
notifyWatchersStartRun
protected void notifyWatchersStartRun() -
notifyWatchersEndRun
protected void notifyWatchersEndRun() -
notifyWatchersBeforeStep
protected void notifyWatchersBeforeStep() -
notifyWatchersAfterStep
protected void notifyWatchersAfterStep() -
logStepResult
-