|
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
public class 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(java.lang.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) |
double |
getAvgPageBytes()
calculates the average page size, which means divide the bytes by number of samples. |
double |
getBytesPerSecond()
Throughput in bytes / second |
int |
getCount()
|
Sample |
getCurrentSample()
|
java.util.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. |
double |
getKBPerSecond()
Throughput in kilobytes / second |
java.lang.String |
getLabel()
|
java.lang.Number |
getMax()
|
double |
getMaxThroughput()
|
double |
getMean()
|
java.lang.Number |
getMeanAsNumber()
|
java.lang.Number |
getMedian()
|
java.lang.Number |
getMin()
|
double |
getPageSize()
Deprecated. use getBytesPerSecond() instead |
java.lang.Number |
getPercentPoint(double percent)
|
java.lang.Number |
getPercentPoint(float percent)
|
double |
getRate()
Returns the throughput associated to this sampler in requests per second. |
Sample |
getSample(int index)
|
java.util.List |
getSamples()
|
double |
getStandardDeviation()
|
java.lang.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(java.lang.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()
for the average page size
public double getBytesPerSecond()
public double getKBPerSecond()
public double getAvgPageBytes()
public java.lang.String getLabel()
public Sample addSample(SampleResult res)
public java.util.List getSamples()
public Sample getSample(int index)
public double getErrorPercentage()
public java.lang.String toString()
toString
in class java.lang.Object
public long getErrorCount()
public double getMaxThroughput()
public java.util.HashMap getDistribution()
public java.lang.Number getPercentPoint(double percent)
public int getCount()
public java.lang.Number getMax()
public double getMean()
public java.lang.Number getMeanAsNumber()
public java.lang.Number getMedian()
public java.lang.Number getMin()
public java.lang.Number getPercentPoint(float percent)
public double getStandardDeviation()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |