public class JTLData extends Object implements Serializable, DataSet
| Constructor and Description |
|---|
JTLData() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(SampleResult sample)
the implementation will set the start timestamp if the HashMap
is empty. otherwise it will set the end timestamp using the
end time
|
String |
getDataSource()
Return the datasource.
|
String |
getDataSourceName()
In some cases, we may want to return a string that isn't the full
datasource string or something different.
|
Date |
getDate()
The date we use for the result is the start timestamp.
|
long |
getEndTimestamp()
return the timestamp in millisecond format.
|
String |
getMonthDayDate()
convienance method for getting the date in mmdd format
|
String |
getMonthDayYearDate()
convienant method for getting the date in yyyymmdd format
|
long |
getStartTimestamp()
return the timestamp in millisecond format.
|
SamplingStatCalculator |
getStatistics(String url)
The method will SamplingStatCalculator for the given URL.
|
Set<SamplingStatCalculator> |
getStats()
Return a Set of the values
|
List |
getStats(List urls)
The purpose of the method is to make it convienant to pass a list
of the URLs and return a list of the SamplingStatCalculators.
|
Set<?> |
getURLs()
Return a Set of the URLs
|
boolean |
isStats()
By default, the method always returns true.
|
void |
loadData()
The implementation loads a single .jtl file and cleans up the
ResultCollector.
|
void |
setDataSource(String absolutePath)
Depending on the implementation, the datasouce could be a file
or a RDBMS.
|
void |
setEndTimestamp(long stamp)
Set the timestamp using the last result from the datasource
|
void |
setStartTimestamp(long stamp)
Set the timestamp using the first result from the datasource
|
public Set<?> getURLs()
public Set<SamplingStatCalculator> getStats()
public List getStats(List urls)
public void setDataSource(String absolutePath)
DataSetsetDataSource in interface DataSetpublic String getDataSource()
DataSetgetDataSource in interface DataSetpublic String getDataSourceName()
DataSetgetDataSourceName in interface DataSetpublic void setStartTimestamp(long stamp)
DataSetsetStartTimestamp in interface DataSetpublic long getStartTimestamp()
DataSetgetStartTimestamp in interface DataSetpublic void setEndTimestamp(long stamp)
DataSetsetEndTimestamp in interface DataSetpublic long getEndTimestamp()
DataSetgetEndTimestamp in interface DataSetpublic Date getDate()
public String getMonthDayDate()
DataSetgetMonthDayDate in interface DataSetpublic String getMonthDayYearDate()
DataSetgetMonthDayYearDate in interface DataSetpublic SamplingStatCalculator getStatistics(String url)
getStatistics in interface DataSeturl - public void loadData()
public void add(SampleResult sample)
add in interface Visualizerpublic boolean isStats()
isStats in interface VisualizerCopyright © 1998-2015 Apache Software Foundation. All Rights Reserved.