Class PerfTestRunner
- java.lang.Object
-
- org.camunda.bpm.qa.performance.engine.framework.PerfTestRunner
-
public class PerfTestRunner extends Object
- Author:
- Daniel Meyer, Ingo Richtsmeier
-
-
Field Summary
Fields Modifier and Type Field Description protected PerfTestConfiguration
configuration
static PerfTestPass
currentPass
protected Object
doneMonitor
protected Throwable
exception
protected ExecutorService
executor
protected boolean
isDone
protected Object
passMonitor
protected PerfTestResults
results
protected PerfTest
test
protected 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 stepFuture<PerfTestResults>
execute()
void
failed(PerfTestRun perfTestRun, Throwable t)
ExecutorService
getExecutor()
PerfTest
getTest()
List<PerfTestWatcher>
getWatchers()
protected void
init()
void
logStepResult(PerfTestRun perfTestRun, Object stepResult)
protected void
notifyWatchersAfterPass()
protected void
notifyWatchersBeforePass()
protected void
runPassWithThreadCount(int passNumberOfThreads)
static void
signalRun(String runId)
-
-
-
Field Detail
-
executor
protected ExecutorService executor
-
test
protected PerfTest test
-
configuration
protected PerfTestConfiguration configuration
-
currentPass
public static PerfTestPass currentPass
-
results
protected PerfTestResults results
-
passMonitor
protected Object passMonitor
-
doneMonitor
protected Object doneMonitor
-
isDone
protected boolean isDone
-
exception
protected Throwable exception
-
watchers
protected List<PerfTestWatcher> watchers
-
-
Constructor Detail
-
PerfTestRunner
public PerfTestRunner(PerfTest test, PerfTestConfiguration configuration)
-
-
Method Detail
-
init
protected void init()
-
execute
public Future<PerfTestResults> execute()
-
getExecutor
public 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, Throwable t)
-
getWatchers
public List<PerfTestWatcher> getWatchers()
-
getTest
public PerfTest getTest()
-
logStepResult
public void logStepResult(PerfTestRun perfTestRun, Object stepResult)
-
signalRun
public static void signalRun(String runId)
-
-