public class JMSReceiverWorker extends Object implements MaestroReceiverWorker
| Constructor and Description |
|---|
JMSReceiverWorker() |
| 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.
|
long |
messageCount()
It represents the works done expressed in messages processed.
|
void |
run() |
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
|
long |
startedEpochMillis()
It represent the start of the test in milliseconds using Unix Epoch in milliseconds.
|
void |
stop()
Stops the test execution
|
org.HdrHistogram.Histogram |
takeLatenciesSnapshot(org.HdrHistogram.Histogram intervalHistogram)
It is able to take a snapshot of the current recorder latencies.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitelapsedTimepublic long messageCount()
TestDuration.TestProgressmessageCount in interface TestDuration.TestProgresspublic WorkerStateInfo getWorkerState()
MaestroWorkergetWorkerState in interface MaestroWorkerpublic long startedEpochMillis()
TestDuration.TestProgressIf the test isn't started yet it is an arbitrary negative value.
startedEpochMillis in interface TestDuration.TestProgresspublic void setWorkerNumber(int number)
MaestroWorkersetWorkerNumber in interface MaestroWorkernumber - the number of this workerpublic void setWorkerOptions(WorkerOptions workerOptions)
MaestroWorkersetWorkerOptions in interface MaestroWorkerworkerOptions - the worker options to setpublic void start()
MaestroWorkerstart in interface MaestroWorkerpublic org.HdrHistogram.Histogram takeLatenciesSnapshot(org.HdrHistogram.Histogram intervalHistogram)
MaestroWorkertakeLatenciesSnapshot in interface MaestroWorkerintervalHistogram - the new histogram to be used to record latencies from now onnull if none has been recorded.public boolean isRunning()
MaestroWorkerisRunning in interface MaestroWorkerpublic void stop()
MaestroWorkerstop in interface MaestroWorkerpublic void fail(Exception exception)
MaestroWorkerfail in interface MaestroWorkerpublic void halt()
MaestroWorkerhalt in interface MaestroWorkerThis documentation was released into the public domain.