|
Apache JMeter 2.1.1 |
|||||||||
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 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 |
getErrorPercentageString()
Returns a String which represents the percentage of sample errors that have occurred. ("0.00%" through "100.00%") |
String |
getLabel()
|
Number |
getMax()
|
double |
getMaxThroughput()
|
double |
getMean()
|
Number |
getMeanAsNumber()
|
Number |
getMedian()
|
Number |
getMin()
|
double |
getPageSize()
calculates the average page size, which means divide the bytes by number of samples. |
String |
getPageSizeString()
formats the rate |
Number |
getPercentPoint(double percent)
|
Number |
getPercentPoint(float percent)
|
double |
getRate()
Returns the throughput associated to this sampler in requests per second. |
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. |
Sample |
getSample(int index)
|
List |
getSamples()
|
double |
getStandardDeviation()
|
String |
toString()
For debugging purposes, mainly. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
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 String getRateString()
The number is represented in requests/second or requests/minute or requests/hour.
Examples: "34.2/sec" "0.1/sec" "43.0/hour" "15.9/min"
public double getPageSize()
public String getPageSizeString()
public String getLabel()
public Sample addSample(SampleResult res)
public List getSamples()
public Sample getSample(int index)
public double getErrorPercentage()
getErrorPercentageString()
.
public String getErrorPercentageString()
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 2.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |