public class PerfTestRunner extends Object
Modifier and Type | Field and 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 and Description |
---|
PerfTestRunner(PerfTest test,
PerfTestConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
completedRun(PerfTestRun run)
Invoked when a
PerfTestRun is completed. |
void |
completedStep(PerfTestRun run,
PerfTestStep currentStep)
Invoked when a
PerfTestRun completed a step |
Future<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) |
protected ExecutorService executor
protected PerfTest test
protected PerfTestConfiguration configuration
public static PerfTestPass currentPass
protected PerfTestResults results
protected Object passMonitor
protected Object doneMonitor
protected boolean isDone
protected Throwable exception
protected List<PerfTestWatcher> watchers
public PerfTestRunner(PerfTest test, PerfTestConfiguration configuration)
protected void init()
public Future<PerfTestResults> execute()
public ExecutorService getExecutor()
protected void runPassWithThreadCount(int passNumberOfThreads)
protected void notifyWatchersBeforePass()
protected void notifyWatchersAfterPass()
public void completedStep(PerfTestRun run, PerfTestStep currentStep)
PerfTestRun
completed a steprun
- the current RuncurrentStep
- the completed steppublic void completedRun(PerfTestRun run)
PerfTestRun
is completed.run
- the completed runpublic void failed(PerfTestRun perfTestRun, Throwable t)
public List<PerfTestWatcher> getWatchers()
public PerfTest getTest()
public void logStepResult(PerfTestRun perfTestRun, Object stepResult)
public static void signalRun(String runId)
Copyright © 2017. All rights reserved.