|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jmeter.testelement.JTLData
public class JTLData
The purpose of TableData is to contain the results of a single .jtl file. It is equivalent to what the AggregateListener table. A HashMap is used to store the data. The URL is the key and the value is SamplingStatCalculator
| Constructor Summary | |
|---|---|
JTLData()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JTLData()
| Method Detail |
|---|
public Set<?> getURLs()
getURLs in interface DataSetpublic Set<SamplingStatCalculator> getStats()
getStats in interface DataSetpublic List getStats(List urls)
getStats in interface DataSeturls -
public void setDataSource(String absolutePath)
DataSet
setDataSource in interface DataSetpublic String getDataSource()
DataSet
getDataSource in interface DataSetpublic String getDataSourceName()
DataSet
getDataSourceName in interface DataSetpublic void setStartTimestamp(long stamp)
DataSet
setStartTimestamp in interface DataSetpublic long getStartTimestamp()
DataSet
getStartTimestamp in interface DataSetpublic void setEndTimestamp(long stamp)
DataSet
setEndTimestamp in interface DataSetpublic long getEndTimestamp()
DataSet
getEndTimestamp in interface DataSetpublic Date getDate()
getDate in interface DataSetpublic String getMonthDayDate()
DataSet
getMonthDayDate in interface DataSetpublic String getMonthDayYearDate()
DataSet
getMonthDayYearDate in interface DataSetpublic SamplingStatCalculator getStatistics(String url)
getStatistics in interface DataSeturl -
public void loadData()
loadData in interface DataSetpublic void add(SampleResult sample)
add in interface Visualizerpublic boolean isStats()
isStats in interface Visualizer
|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||