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, wait
elapsedTime
public long messageCount()
TestDuration.TestProgress
messageCount
in interface TestDuration.TestProgress
public WorkerStateInfo getWorkerState()
MaestroWorker
getWorkerState
in interface MaestroWorker
public long startedEpochMillis()
TestDuration.TestProgress
If the test isn't started yet it is an arbitrary negative value.
startedEpochMillis
in interface TestDuration.TestProgress
public void setWorkerNumber(int number)
MaestroWorker
setWorkerNumber
in interface MaestroWorker
number
- the number of this workerpublic void setWorkerOptions(WorkerOptions workerOptions)
MaestroWorker
setWorkerOptions
in interface MaestroWorker
workerOptions
- the worker options to setpublic void start()
MaestroWorker
start
in interface MaestroWorker
public org.HdrHistogram.Histogram takeLatenciesSnapshot(org.HdrHistogram.Histogram intervalHistogram)
MaestroWorker
takeLatenciesSnapshot
in interface MaestroWorker
intervalHistogram
- the new histogram to be used to record latencies from now onnull
if none has been recorded.public boolean isRunning()
MaestroWorker
isRunning
in interface MaestroWorker
public void stop()
MaestroWorker
stop
in interface MaestroWorker
public void fail(Exception exception)
MaestroWorker
fail
in interface MaestroWorker
public void halt()
MaestroWorker
halt
in interface MaestroWorker
This documentation was released into the public domain.