public class PerfTestRun extends Object implements PerfTestRunContext, Runnable
Modifier and Type | Field and Description |
---|---|
protected PerfTestStep |
currentStep |
protected boolean |
isStarted |
protected Map<String,Object> |
runContext |
protected long |
runEndTime |
protected PerfTestRunner |
runner |
protected long |
runStartTime |
protected AtomicInteger |
state |
protected long |
stepEndTime |
protected long |
stepStartTime |
currentContext
Constructor and Description |
---|
PerfTestRun(PerfTestRunner runner,
String runId,
PerfTestStep firstStep) |
Modifier and Type | Method and Description |
---|---|
protected void |
continueRun() |
void |
endRun() |
PerfTestStep |
getCurrentStep() |
long |
getRunEndTime() |
PerfTestRunner |
getRunner() |
long |
getRunStartTime() |
long |
getStepEndTime() |
long |
getStepStartTime() |
<T> T |
getVariable(String name) |
boolean |
isAlreadySignaled()
Sets the run into waiting state and returns if the run
was already signaled.
|
boolean |
isWaitingForSignal()
Signals the run and returns if the run was already
waiting for a signal.
|
void |
logStepResult(Object stepResult) |
protected void |
notifyWatchersAfterStep() |
protected void |
notifyWatchersBeforeStep() |
protected void |
notifyWatchersEndRun() |
protected void |
notifyWatchersStartRun() |
protected void |
pauseRun() |
void |
run() |
void |
setCurrentStep(PerfTestStep currentStep) |
void |
setVariable(String name,
Object value) |
void |
startRun() |
protected boolean isStarted
protected long runStartTime
protected long runEndTime
protected long stepStartTime
protected long stepEndTime
protected volatile PerfTestStep currentStep
protected AtomicInteger state
protected PerfTestRunner runner
public PerfTestRun(PerfTestRunner runner, String runId, PerfTestStep firstStep)
public void startRun()
public void endRun()
protected void continueRun()
protected void pauseRun()
public <T> T getVariable(String name)
getVariable
in interface PerfTestRunContext
public void setVariable(String name, Object value)
setVariable
in interface PerfTestRunContext
public void setCurrentStep(PerfTestStep currentStep)
public long getRunStartTime()
public long getRunEndTime()
public PerfTestStep getCurrentStep()
public PerfTestRunner getRunner()
public long getStepEndTime()
public long getStepStartTime()
public boolean isAlreadySignaled()
public boolean isWaitingForSignal()
protected void notifyWatchersStartRun()
protected void notifyWatchersEndRun()
protected void notifyWatchersBeforeStep()
protected void notifyWatchersAfterStep()
public void logStepResult(Object stepResult)
Copyright © 2017. All rights reserved.