Method Summary |
|
public synchronized void | addSample(SampleResult res) Records a sample. |
public synchronized void | addSample(RunningSample rs) |
public synchronized void | clear() |
public long | getAverage() Returns the average time in milliseconds that samples ran in. |
public long | getElapsed() |
public long | getErrorCount() |
public double | getErrorPercentage() Returns the raw double value of the percentage of samples with errors
that were recorded. |
public String | getErrorPercentageString() Returns a String which represents the percentage of sample errors that
have occurred. |
public int | getIndex() |
public String | getLabel() |
public long | getMax() Returns the time in milliseconds of the slowest sample. |
public long | getMin() Returns the time in milliseconds of the quickest sample. |
public long | getNumSamples() Returns the number of samples that have been recorded by this instance of
the RunningSample class. |
public double | getRate() Returns the throughput associated to this sampler in requests per second. |
public double | getRatePerMin() Returns the throughput associated to this sampler in requests per min. |
public String | getRateString() Returns a String that represents the throughput associated for this
sampler, in units appropriate to its dimension:
The number is represented in requests/second or requests/minute or
requests/hour. |
public String | toString() For debugging purposes, mainly. |