|
Apache JMeter | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jmeter.samplers.SampleResult
org.apache.jmeter.samplers.StatisticalSampleResult
Aggregates sample results for use by the Statistical remote batch mode. Samples are aggregated by the key defined by getKey(). TODO: merge error count into parent class?
| Field Summary |
| Fields inherited from class org.apache.jmeter.samplers.SampleResult |
BINARY, DEFAULT_HTTP_ENCODING, TEXT |
| Constructor Summary | |
StatisticalSampleResult()
|
|
StatisticalSampleResult(long stamp,
long elapsed)
Deprecated. Needs to be replaced when multiple sample results are sorted out |
|
StatisticalSampleResult(SampleResult res)
|
|
| Method Summary | |
void |
add(SampleResult res)
|
int |
getErrorCount()
Returns the count of errors. |
static String |
getKey(SampleEvent event)
Generates the key to be used for aggregating samples as follows: sampleLabel "-" threadGroup
N.B. the key should agree with the fixed items that are saved in the sample. |
long |
getTime()
Get the time it took this sample to occur. |
long |
getTimeStamp()
Get the sample timestamp, which may be either the start time or the end time. |
void |
setErrorCount(int e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StatisticalSampleResult()
public StatisticalSampleResult(long stamp,
long elapsed)
stamp - elapsed - public StatisticalSampleResult(SampleResult res)
| Method Detail |
public void add(SampleResult res)
public long getTime()
SampleResult
getTime in class SampleResultpublic long getTimeStamp()
SampleResult
getTimeStamp in class SampleResultSampleResult.getStartTime(),
SampleResult.getEndTime()public int getErrorCount()
SampleResult
getErrorCount in class SampleResultpublic void setErrorCount(int e)
setErrorCount in class SampleResultpublic static String getKey(SampleEvent event)
sampleLabel "-" threadGroup
N.B. the key should agree with the fixed items that are saved in the sample.
event - sample event whose key is to be calculated
|
Apache JMeter | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||