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)
DataSet
setDataSource
in interface DataSet
public String getDataSource()
DataSet
getDataSource
in interface DataSet
public String getDataSourceName()
DataSet
getDataSourceName
in interface DataSet
public void setStartTimestamp(long stamp)
DataSet
setStartTimestamp
in interface DataSet
public long getStartTimestamp()
DataSet
getStartTimestamp
in interface DataSet
public void setEndTimestamp(long stamp)
DataSet
setEndTimestamp
in interface DataSet
public long getEndTimestamp()
DataSet
getEndTimestamp
in interface DataSet
public Date getDate()
public String getMonthDayDate()
DataSet
getMonthDayDate
in interface DataSet
public String getMonthDayYearDate()
DataSet
getMonthDayYearDate
in interface DataSet
public SamplingStatCalculator getStatistics(String url)
getStatistics
in interface DataSet
url
- public void loadData()
public void add(SampleResult sample)
add
in interface Visualizer
public boolean isStats()
isStats
in interface Visualizer
Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.