Class PerfTestRunner
- java.lang.Object
-
- org.camunda.bpm.qa.performance.engine.framework.PerfTestRunner
-
public class PerfTestRunner extends java.lang.Object- Author:
- Daniel Meyer, Ingo Richtsmeier
-
-
Field Summary
Fields Modifier and Type Field Description protected PerfTestConfigurationconfigurationstatic PerfTestPasscurrentPassprotected java.lang.ObjectdoneMonitorprotected java.lang.Throwableexceptionprotected java.util.concurrent.ExecutorServiceexecutorprotected booleanisDoneprotected java.lang.ObjectpassMonitorprotected PerfTestResultsresultsprotected PerfTesttestprotected java.util.List<PerfTestWatcher>watchers
-
Constructor Summary
Constructors Constructor Description PerfTestRunner(PerfTest test, PerfTestConfiguration configuration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompletedRun(PerfTestRun run)Invoked when aPerfTestRunis completed.voidcompletedStep(PerfTestRun run, PerfTestStep currentStep)Invoked when aPerfTestRuncompleted a stepjava.util.concurrent.Future<PerfTestResults>execute()voidfailed(PerfTestRun perfTestRun, java.lang.Throwable t)java.util.concurrent.ExecutorServicegetExecutor()PerfTestgetTest()java.util.List<PerfTestWatcher>getWatchers()protected voidinit()voidlogStepResult(PerfTestRun perfTestRun, java.lang.Object stepResult)protected voidnotifyWatchersAfterPass()protected voidnotifyWatchersBeforePass()protected voidrunPassWithThreadCount(int passNumberOfThreads)static voidsignalRun(java.lang.String runId)
-
-
-
Field Detail
-
executor
protected java.util.concurrent.ExecutorService executor
-
test
protected PerfTest test
-
configuration
protected PerfTestConfiguration configuration
-
currentPass
public static PerfTestPass currentPass
-
results
protected PerfTestResults results
-
passMonitor
protected java.lang.Object passMonitor
-
doneMonitor
protected java.lang.Object doneMonitor
-
isDone
protected boolean isDone
-
exception
protected java.lang.Throwable exception
-
watchers
protected java.util.List<PerfTestWatcher> watchers
-
-
Constructor Detail
-
PerfTestRunner
public PerfTestRunner(PerfTest test, PerfTestConfiguration configuration)
-
-
Method Detail
-
init
protected void init()
-
execute
public java.util.concurrent.Future<PerfTestResults> execute()
-
getExecutor
public java.util.concurrent.ExecutorService getExecutor()
-
runPassWithThreadCount
protected void runPassWithThreadCount(int passNumberOfThreads)
-
notifyWatchersBeforePass
protected void notifyWatchersBeforePass()
-
notifyWatchersAfterPass
protected void notifyWatchersAfterPass()
-
completedStep
public void completedStep(PerfTestRun run, PerfTestStep currentStep)
Invoked when aPerfTestRuncompleted a step- Parameters:
run- the current RuncurrentStep- the completed step
-
completedRun
public void completedRun(PerfTestRun run)
Invoked when aPerfTestRunis completed.- Parameters:
run- the completed run
-
failed
public void failed(PerfTestRun perfTestRun, java.lang.Throwable t)
-
getWatchers
public java.util.List<PerfTestWatcher> getWatchers()
-
getTest
public PerfTest getTest()
-
logStepResult
public void logStepResult(PerfTestRun perfTestRun, java.lang.Object stepResult)
-
signalRun
public static void signalRun(java.lang.String runId)
-
-