Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jmeter.report » [javadoc | source]
org.apache.jmeter.report
public interface: DataSet [javadoc | source]

All Implemented Interfaces:
    Visualizer

DataSet extends Visualizer so that it can be used with ResultCollector. Classes implementing the interface should create a new instance of ResultCollector and call setListener(Visualizer) passing itself. When the ResultCollector.loadExistingFile is called, it will pass the SampleResults.
Method from org.apache.jmeter.report.DataSet Summary:
getDataSource,   getDataSourceName,   getDate,   getEndTimestamp,   getMonthDayDate,   getMonthDayYearDate,   getStartTimestamp,   getStatistics,   getStats,   getStats,   getURLs,   loadData,   setDataSource,   setEndTimestamp,   setStartTimestamp
Method from org.apache.jmeter.report.DataSet Detail:
 public String getDataSource()
    Return the datasource. For files, it should be the absolute path. For databases, it should be the datasource name created in jmeter.
 public String getDataSourceName()
    In some cases, we may want to return a string that isn't the full datasource string or something different. For example, we may want to return just the filename and not the absolutePath of a JTL file.
 public Date getDate()
    Return the Date object using the start timestamp
 public long getEndTimestamp()
    return the timestamp in millisecond format.
 public String getMonthDayDate()
    convienance method for getting the date in mmdd format
 public String getMonthDayYearDate()
    convienant method for getting the date in yyyymmdd format
 public long getStartTimestamp()
    return the timestamp in millisecond format.
 public SamplingStatCalculator getStatistics(String url)
    Return the SamplingStatCalculator for a specific URL.
 public Set getStats()
    Classes implementing the method should return instance of SamplingStatCalculator.
 public List getStats(List urls)
    Convienance method for getting all the SamplingStatCalculators for a given URL.
 public Set getURLs()
    Classes implementing the method should return the URL's in the DataSet. It is up to the class to return Strings or URL.
 public  void loadData()
    Classes implementing the method should load the data from the target location. It doesn't necessarily have to be a file. It could be from a database.
 public  void setDataSource(String datasource)
    Depending on the implementation, the datasouce could be a file or a RDBMS. It's up to the implementing class to decide.
 public  void setEndTimestamp(long stamp)
    Set the timestamp using the last result from the datasource
 public  void setStartTimestamp(long stamp)
    Set the timestamp using the first result from the datasource