Class PerfTestRun
java.lang.Object
org.cibseven.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
FieldsModifier and TypeFieldDescriptionprotected PerfTestStepprotected booleanprotected longprotected PerfTestRunnerprotected longprotected AtomicIntegerprotected longprotected longFields inherited from interface org.cibseven.bpm.qa.performance.engine.framework.PerfTestRunContext
currentContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidendRun()longlonglonglong<T> TgetVariable(String name) booleanSets the run into waiting state and returns if the run was already signaled.booleanSignals the run and returns if the run was already waiting for a signal.voidlogStepResult(Object stepResult) protected voidprotected voidprotected voidprotected voidprotected voidpauseRun()voidrun()voidsetCurrentStep(PerfTestStep currentStep) voidsetVariable(String name, Object value) voidstartRun()
-
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:
getVariablein interfacePerfTestRunContext
-
setVariable
- Specified by:
setVariablein 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
-