|
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
public class 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,
boolean keyOnThreadName)
Create a statistical sample result from an ordinary sample result. |
|
| Method Summary | |
|---|---|
void |
add(SampleResult res)
|
int |
getErrorCount()
Returns the count of errors. |
static String |
getKey(SampleEvent event,
boolean keyOnThreadName)
Generates the key to be used for aggregating samples as follows: sampleLabel "-" [threadName|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()
@Deprecated
public StatisticalSampleResult(long stamp,
long elapsed)
stamp - elapsed -
public StatisticalSampleResult(SampleResult res,
boolean keyOnThreadName)
res - the sample resultkeyOnThreadName - true if key includes threadName, false if threadGroup| 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 SampleResult
public static String getKey(SampleEvent event,
boolean keyOnThreadName)
sampleLabel "-" [threadName|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 calculatedkeyOnThreadName - true if key should use thread name, otherwise use thread group
|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||