|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.visualizers.SamplingStatCalculator
Aggegate sample data container. Just instantiate a new instance of this
class, and then call addSample(SampleResult)
a few times, and pull
the stats out with whatever methods you prefer.
Constructor Summary | |
SamplingStatCalculator()
|
|
SamplingStatCalculator(SamplingStatCalculator stat)
Essentially a copy function |
|
SamplingStatCalculator(String label)
Use this constructor. |
Method Summary | |
Sample |
addSample(SampleResult res)
Records a sample. |
void |
addSamples(SamplingStatCalculator ssc)
|
void |
clear()
Clear the counters (useful for differential stats) |
int |
getCount()
|
Sample |
getCurrentSample()
|
HashMap |
getDistribution()
|
long |
getElapsed()
Get the elapsed time for the samples |
long |
getErrorCount()
|
double |
getErrorPercentage()
Returns the raw double value of the percentage of samples with errors that were recorded. |
String |
getLabel()
|
Number |
getMax()
|
double |
getMaxThroughput()
|
double |
getMean()
|
Number |
getMeanAsNumber()
|
Number |
getMedian()
|
Number |
getMin()
|
double |
getPageSize()
Should calculate the average page size, which means divide the bytes by number of samples - actually calculates the throughput in bytes / second TODO - fix the name and comment |
Number |
getPercentPoint(double percent)
|
Number |
getPercentPoint(float percent)
|
double |
getRate()
Returns the throughput associated to this sampler in requests per second. |
Sample |
getSample(int index)
|
List |
getSamples()
|
double |
getStandardDeviation()
|
String |
toString()
For debugging purposes, only. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SamplingStatCalculator()
public SamplingStatCalculator(String label)
public SamplingStatCalculator(SamplingStatCalculator stat)
stat
- Method Detail |
public void addSamples(SamplingStatCalculator ssc)
public void clear()
public Sample getCurrentSample()
public long getElapsed()
public double getRate()
public double getPageSize()
public String getLabel()
public Sample addSample(SampleResult res)
public List getSamples()
public Sample getSample(int index)
public double getErrorPercentage()
public String toString()
public long getErrorCount()
public double getMaxThroughput()
public HashMap getDistribution()
public Number getPercentPoint(double percent)
percent
-
public int getCount()
public Number getMax()
public double getMean()
public Number getMeanAsNumber()
public Number getMedian()
public Number getMin()
public Number getPercentPoint(float percent)
percent
-
public double getStandardDeviation()
|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |