Serializable
, Cloneable
public class StatisticalSampleResult extends SampleResult implements Serializable
BINARY, DEFAULT_ENCODING, DEFAULT_HTTP_ENCODING, EMPTY_BA, TEXT
Constructor | 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.
|
StatisticalSampleResult(SampleResult res,
boolean unused) |
Deprecated.
no longer necessary; use
StatisticalSampleResult(SampleResult) instead |
Modifier and Type | Method | Description |
---|---|---|
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] |
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) |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAssertionResult, addRawSubResult, addSubResult, cleanAfterSample, clone, connectEnd, createTestSample, createTestSample, currentTimeInMillis, getAllThreads, getAssertionResults, getBodySize, getBytes, getConnectTime, getContentType, getDataEncodingNoDefault, getDataEncodingWithDefault, getDataEncodingWithDefault, getDataType, getEndTime, getGroupThreads, getHeadersSize, getIdleTime, getLatency, getMediaType, getParent, getRequestHeaders, getResponseCode, getResponseData, getResponseDataAsString, getResponseHeaders, getResponseMessage, getResultFileName, getSampleCount, getSampleLabel, getSampleLabel, getSamplerData, getSaveConfig, getStartTime, getSubResults, getThreadName, getURL, getUrlAsString, isMonitor, isResponseCodeOK, isStampedAtStart, isStartNextThreadLoop, isStopTest, isStopTestNow, isStopThread, isSuccessful, latencyEnd, markFile, removeAssertionResults, removeSubResults, sampleEnd, samplePause, sampleResume, sampleStart, setAllThreads, setBodySize, setBytes, setConnectTime, setContentType, setDataEncoding, setDataType, setEncodingAndType, setEndTime, setGroupThreads, setHeadersSize, setIdleTime, setLatency, setMonitor, setParent, setRequestHeaders, setResponseCode, setResponseCodeOK, setResponseData, setResponseData, setResponseData, setResponseHeaders, setResponseMessage, setResponseMessageOK, setResponseOK, setResultFileName, setSampleCount, setSampleLabel, setSamplerData, setSaveConfig, setStampAndTime, setStartNextThreadLoop, setStartTime, setStopTest, setStopTestNow, setStopThread, setSuccessful, setThreadName, setTimeStamp, setURL, storeSubResult, toString
public 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 result@Deprecated public StatisticalSampleResult(SampleResult res, boolean unused)
StatisticalSampleResult(SampleResult)
insteadres
- the sample resultunused
- no longer usedpublic void add(SampleResult res)
public long getTime()
SampleResult
getTime
in class SampleResult
public long getTimeStamp()
SampleResult
getTimeStamp
in class SampleResult
SampleResult.getStartTime()
,
SampleResult.getEndTime()
public int getErrorCount()
SampleResult
getErrorCount
in class SampleResult
public 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 groupCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.