| |
|
| java.lang.Object org.apache.jmeter.testelement.JTLData
JTLData | public class JTLData implements Serializable,DataSet(Code) | | author: Peter Lin author: The purpose of TableData is to contain the results of a single .jtl file. author: It is equivalent to what the AggregateListener table. A HashMap is used author: to store the data. The URL is the key and the value is SamplingStatCalculator |
Constructor Summary | |
public | JTLData() |
endTimestamp | protected long endTimestamp(Code) | | |
startTimestamp | protected long startTimestamp(Code) | | |
add | public void add(SampleResult sample)(Code) | | the implementation will set the start timestamp if the HashMap
is empty. otherwise it will set the end timestamp using the
end time
|
getDate | public Date getDate()(Code) | | The date we use for the result is the start timestamp. The
reasoning is that a test may run for a long time, but it
is most likely scheduled to run using CRON on unix or
scheduled task in windows.
|
getEndTimestamp | public long getEndTimestamp()(Code) | | |
getMonthDayYearDate | public String getMonthDayYearDate()(Code) | | |
getStartTimestamp | public long getStartTimestamp()(Code) | | |
getStatistics | public SamplingStatCalculator getStatistics(String url)(Code) | | The method will SamplingStatCalculator for the given URL. If the URL
doesn't exist, the method returns null.
Parameters: url - |
getStats | public Set getStats()(Code) | | Return a Set of the values
|
getStats | public List getStats(List urls)(Code) | | The purpose of the method is to make it convienant to pass a list
of the URL's and return a list of the SamplingStatCalculators. If
no URL's match, the list is empty.
The SamplingStatCalculators will be returned in the same sequence
as the url list.
Parameters: urls - |
getURLs | public Set getURLs()(Code) | | Return a Set of the URL's
|
isStats | public boolean isStats()(Code) | | By default, the method always returns true. Subclasses can over
ride the implementation.
|
loadData | public void loadData()(Code) | | The implementation loads a single .jtl file and cleans up the
ResultCollector.
|
setDataSource | public void setDataSource(String absolutePath)(Code) | | |
setEndTimestamp | public void setEndTimestamp(long stamp)(Code) | | |
setStartTimestamp | public void setStartTimestamp(long stamp)(Code) | | |
|
|
|