public interface MaestroWorker extends Runnable, TestDuration.TestProgress
Modifier and Type | Method and Description |
---|---|
void |
fail(Exception exception)
Stops the test execution with a failure condition (ie.: to fail due to external causes)
|
WorkerStateInfo |
getWorkerState()
Gets the current state of the worker
|
void |
halt()
Halt the daemons
|
boolean |
isRunning()
Checks whether the worker is in running state.
|
void |
setWorkerNumber(int number)
When multiple workers are involved, set the number of the worker
|
void |
setWorkerOptions(WorkerOptions workerOptions)
Sets the options for this worker
|
void |
start()
Starts the test
|
void |
stop()
Stops the test execution
|
default org.HdrHistogram.Histogram |
takeLatenciesSnapshot(org.HdrHistogram.Histogram intervalHistogram)
It is able to take a snapshot of the current recorder latencies.
|
elapsedTime, messageCount, startedEpochMillis
boolean isRunning()
void setWorkerOptions(WorkerOptions workerOptions)
workerOptions
- the worker options to setWorkerStateInfo getWorkerState()
void start()
void stop()
void fail(Exception exception)
void halt()
default org.HdrHistogram.Histogram takeLatenciesSnapshot(org.HdrHistogram.Histogram intervalHistogram)
intervalHistogram
- the new histogram to be used to record latencies from now onnull
if none has been recorded.void setWorkerNumber(int number)
number
- the number of this workerThis documentation was released into the public domain.