Create a sample with a specific elapsed time but don't allow the times to
be changed later
(only used by HTTPSampleResult)
Parameters: elapsed - time Parameters: atend - create the sample finishing now, else starting now
SampleResult
public SampleResult(long stamp, long elapsed)(Code)
Allow users to create a sample with specific timestamp and elapsed times
for cloning purposes, but don't allow the times to be changed later
Currently used by OldSaveService, CSVSaveService and StatisticalSampleResult
Parameters: stamp - -this may be a start time or an end time Parameters: elapsed -
Create a sample with specific start and end times for test purposes, but
don't allow the times to be changed later
(used by StatVisualizerModel.Test)
Parameters: start - start time Parameters: end - end time
Create a sample with a specific elapsed time for test purposes, but don't
allow the times to be changed later
Parameters: elapsed - -desired elapsed time
Gets the assertion results associated with this sample.
an array containing the assertion results for this sample.Returns empty array if there are no assertion results.
In the event the sampler does want to pass back the actual contents, we
still want to calculate the throughput. The bytes is the bytes of the
response data.
Parameters: length -
public void setResponseData(byte[] response)(Code)
Sets the responseData attribute of the SampleResult object.
If the parameter is null, then the responseData is set to an empty byte array.
This ensures that getResponseData() can never be null.
Parameters: response - the new responseData value
setResponseData
public void setResponseData(String response)(Code)
Sets the responseData attribute of the SampleResult object.
Parameters: response - the new responseData value (String)
setResponseHeaders
public void setResponseHeaders(String string)(Code)
Method to set the elapsed time for a sample. Retained for backward
compatibility with 3rd party add-ons.
It is assumed that the method is only called at the end of a sample
and that timeStamps are end-times
Also used by SampleResultConverter when creating results from files.
Must not be used in conjunction with sampleStart()/End()
Parameters: elapsed - time in milliseconds