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 PerfTestConfiguration
configuration
static PerfTestPass
currentPass
protected java.lang.Object
doneMonitor
protected java.lang.Throwable
exception
protected java.util.concurrent.ExecutorService
executor
protected boolean
isDone
protected java.lang.Object
passMonitor
protected PerfTestResults
results
protected PerfTest
test
protected 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 void
completedRun(PerfTestRun run)
Invoked when aPerfTestRun
is completed.void
completedStep(PerfTestRun run, PerfTestStep currentStep)
Invoked when aPerfTestRun
completed a stepjava.util.concurrent.Future<PerfTestResults>
execute()
void
failed(PerfTestRun perfTestRun, java.lang.Throwable t)
java.util.concurrent.ExecutorService
getExecutor()
PerfTest
getTest()
java.util.List<PerfTestWatcher>
getWatchers()
protected void
init()
void
logStepResult(PerfTestRun perfTestRun, java.lang.Object stepResult)
protected void
notifyWatchersAfterPass()
protected void
notifyWatchersBeforePass()
protected void
runPassWithThreadCount(int passNumberOfThreads)
static void
signalRun(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 aPerfTestRun
completed a step- Parameters:
run
- the current RuncurrentStep
- the completed step
-
completedRun
public void completedRun(PerfTestRun run)
Invoked when aPerfTestRun
is 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)
-
-