com.lazerycode.jmeter.analyzer.statistics
public class Samples extends Object
| Constructor and Description |
|---|
Samples(int maxSamples,
boolean histogram)
Creates a new instance where a limited number of samples is stored internally.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(long timestamp)
Adds an "error" sample.
|
void |
addSample(long timestamp,
long value)
Adds a "success" sample
|
void |
finish()
Marks collecting samples as "finished"
|
long |
getAverage() |
long |
getDuration() |
long |
getErrorsCount() |
long |
getMax() |
long |
getMaxTimestamp() |
long |
getMin() |
long |
getMinTimestamp() |
Quantile |
getQuantiles(int q)
Returns a Quantile with the grade/resolution q using counts as values
|
List<Long> |
getSamples() |
long |
getStandardDeviation() |
long |
getStoredSamplesCount() |
long |
getSuccessCount() |
long |
getSuccessPerSecond() |
List<Long> |
getTimestamps() |
long |
getTotal() |
boolean |
hasSamples() |
public Samples(int maxSamples,
boolean histogram)
maxSamples - The maximum number of samples. 0=store no sampleshistogram - If set to true the a value histogram should be counted as well.public void addError(long timestamp)
timestamp - The timestamp of the sample. It's assumed that a timestamp is greater or equal than the previous onepublic void addSample(long timestamp,
long value)
timestamp - The timestamp of the sample. It's assumed that a timestamp is greater or equal than the previous onevalue - The sample value, e.g. the response duration or response bytesaddError(long)public void finish()
public boolean hasSamples()
public long getStoredSamplesCount()
getSuccessCount()public long getSuccessCount()
public long getErrorsCount()
public long getMin()
public long getMax()
public long getAverage()
public long getTotal()
public long getStandardDeviation()
public long getMaxTimestamp()
public long getMinTimestamp()
public long getSuccessPerSecond()
public long getDuration()
public Quantile getQuantiles(int q)
q - the gradeCopyright © 2013. All Rights Reserved.