org.apache.jmeter.samplers
Class StatisticalSampleResult
- Serializable
public class StatisticalSampleResult
implements Serializable
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?
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)
|
addAssertionResult, addSubResult, configure, createTestSample, createTestSample, currentTimeInMs, getAllThreads, getAssertionResults, getBytes, getContentType, getDataEncoding, getDataEncodingNoDefault, getDataEncodingWithDefault, getDataType, getEndTime, getErrorCount, getGroupThreads, getIdleTime, getLatency, getMediaType, getParent, getRequestHeaders, getResponseCode, getResponseData, getResponseDataAsString, getResponseHeaders, getResponseMessage, getResultFileName, getSampleCount, getSampleLabel, getSampleLabel, getSamplerData, getSaveConfig, getStartTime, getSubResults, getThreadName, getTime, getTimeStamp, getURL, getUrlAsString, isMonitor, isResponseCodeOK, isStampedAtStart, isStopTest, isStopTestNow, isStopThread, isSuccessful, latencyEnd, markFile, sampleEnd, samplePause, sampleResume, sampleStart, setAllThreads, setBytes, setContentType, setDataEncoding, setDataType, setEncodingAndType, setEndTime, setErrorCount, setGroupThreads, setLatency, setMonitor, setParent, setRequestHeaders, setResponseCode, setResponseCodeOK, setResponseData, setResponseData, setResponseHeaders, setResponseMessage, setResponseMessageOK, setResultFileName, setSampleCount, setSampleLabel, setSamplerData, setSaveConfig, setStampAndTime, setStartTime, setStopTest, setStopTestNow, setStopThread, setSuccessful, setThreadName, setTime, setTimeStamp, setURL, storeSubResult, toString |
StatisticalSampleResult
public StatisticalSampleResult()
StatisticalSampleResult
public StatisticalSampleResult(long stamp,
long elapsed)Needs to be replaced when multiple sample results are sorted out
Allow OldSaveService to generate a suitable result when sample/error counts have been saved.
StatisticalSampleResult
public StatisticalSampleResult(SampleResult res)
Construct a 'parent' result for an already-existing result, essentially
cloning it
res - existing sample result
getErrorCount
public int getErrorCount()
Returns the count of errors.
- getErrorCount in interface SampleResult
- 0 - or 1 if the sample failed
getKey
public 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.
event - sample event whose key is to be calculated
- the key to use for aggregating samples
getTime
public long getTime()
Get the time it took this sample to occur.
- getTime in interface SampleResult
- elapsed time in milliseonds
getTimeStamp
public long getTimeStamp()
Get the sample timestamp, which may be either the start time or the end time.
- getTimeStamp in interface SampleResult
- timeStamp in milliseconds
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.