public class StatisticalSampleResult extends SampleResult implements Serializable
BINARY, DEFAULT_ENCODING, DEFAULT_HTTP_ENCODING, TEXT| Constructor and Description |
|---|
StatisticalSampleResult() |
StatisticalSampleResult(long stamp,
long elapsed)
Deprecated.
Needs to be replaced when multiple sample results are sorted out
|
StatisticalSampleResult(SampleResult res)
Create a statistical sample result from an ordinary sample result.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(SampleResult res) |
protected void |
appendDebugParameters(StringBuilder sb) |
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] |
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, addRawSubResult, addSubResult, addSubResult, cleanAfterSample, clone, connectEnd, createTestSample, createTestSample, currentTimeInMillis, getAllThreads, getAssertionResults, getBodySize, getBodySizeAsLong, getBytes, getBytesAsLong, getConnectTime, getContentType, getDataEncodingNoDefault, getDataEncodingWithDefault, getDataEncodingWithDefault, getDataType, getEndTime, getFirstAssertionFailureMessage, getGroupThreads, getHeadersSize, getIdleTime, getLatency, getMediaType, getParent, getRequestHeaders, getResponseCode, getResponseData, getResponseDataAsString, getResponseHeaders, getResponseMessage, getResultFileName, getSampleCount, getSampleLabel, getSampleLabel, getSamplerData, getSaveConfig, getSearchableTokens, getSentBytes, getStartTime, getSubResults, getTestLogicalAction, getThreadName, getURL, getUrlAsString, isBinaryType, isIgnore, isMonitor, isRenameSampleLabel, isResponseCodeOK, isStampedAtStart, isStartNextThreadLoop, isStopTest, isStopTestNow, isStopThread, isSuccessful, latencyEnd, markFile, removeAssertionResults, removeSubResults, sampleEnd, samplePause, sampleResume, sampleStart, setAllThreads, setBodySize, setBodySize, setBytes, setBytes, setConnectTime, setContentType, setDataEncoding, setDataType, setEncodingAndType, setEndTime, setGroupThreads, setHeadersSize, setIdleTime, setIgnore, setLatency, setMonitor, setParent, setRequestHeaders, setResponseCode, setResponseCodeOK, setResponseData, setResponseData, setResponseData, setResponseHeaders, setResponseMessage, setResponseMessageOK, setResponseOK, setResultFileName, setSampleCount, setSampleLabel, setSamplerData, setSaveConfig, setSentBytes, setStampAndTime, setStartNextThreadLoop, setStartTime, setStopTest, setStopTestNow, setStopThread, setSuccessful, setTestLogicalAction, setThreadName, setTimeStamp, setURL, storeSubResult, storeSubResult, toDebugString, toStringpublic StatisticalSampleResult()
@Deprecated public StatisticalSampleResult(long stamp, long elapsed)
stamp - this may be a start time or an end time (both in milliseconds)elapsed - time in millisecondspublic StatisticalSampleResult(SampleResult res)
res - the sample resultpublic void add(SampleResult res)
public long getTime()
SampleResultgetTime in class SampleResultpublic long getTimeStamp()
SampleResultgetTimeStamp in class SampleResultSampleResult.getStartTime(),
SampleResult.getEndTime()public int getErrorCount()
SampleResultgetErrorCount in class SampleResultpublic void setErrorCount(int e)
setErrorCount in class SampleResultpublic 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 groupprotected void appendDebugParameters(StringBuilder sb)
appendDebugParameters in class SampleResultCopyright © 1998-2023 Apache Software Foundation. All Rights Reserved.