|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 DataSet
public Set<SamplingStatCalculator> getStats()
getStats
in interface DataSet
public List getStats(List urls)
getStats
in interface DataSet
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()
getDate
in interface DataSet
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()
loadData
in interface DataSet
public void add(SampleResult sample)
add
in interface Visualizer
public boolean isStats()
isStats
in interface Visualizer
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |