Type Parameters:
T - the load test application type

public interface LoadTestModel<T>
Collects chart data for a load test.
See Also:
  • Method Details

    • loadTest

      LoadTest<T> loadTest()
      Returns:
      the underlying LoadTest instance
    • applicationTableModel

      Returns:
      a table model for displaying the active application instances
    • getUpdateInterval

      int getUpdateInterval()
      Returns:
      the chart data update interval in milliseconds
    • setUpdateInterval

      void setUpdateInterval(int updateInterval)
      Parameters:
      updateInterval - the chart data update interval in milliseconds
    • collectChartData

      State collectChartData()
      Returns:
      the state controlling whether this load test collects chart data
    • autoRefreshApplications

      State autoRefreshApplications()
      Returns:
      the state controlling whether the applications table model is automatically refreshed
    • removeSelectedApplications

      void removeSelectedApplications()
      Removes the selected applications
    • clearCharts

      void clearCharts()
      Clears the accumulated chart data
    • totalRunCount

      int totalRunCount(String scenarioName)
      Parameters:
      scenarioName - the scenario name
      Returns:
      the total number of runs since the counter was reset
    • successfulRunCount

      int successfulRunCount(String scenarioName)
      Parameters:
      scenarioName - the scenario name
      Returns:
      the total number of successful runs since the counter was reset
    • unsuccessfulRunCount

      int unsuccessfulRunCount(String scenarioName)
      Parameters:
      scenarioName - the scenario name
      Returns:
      the total number of unsuccessful runs since the counter was reset
    • resetRunCounter

      void resetRunCounter()
      Resets the run counters
    • exceptions

      List<Exception> exceptions(String scenarioName)
      Parameters:
      scenarioName - the scenario name
      Returns:
      the exceptions collected from running the scenario
    • clearExceptions

      void clearExceptions(String scenarioName)
      Clears the exceptions collected from running the given scenario
      Parameters:
      scenarioName - the scenario name
    • scenarioDurationDataset

      org.jfree.data.xy.IntervalXYDataset scenarioDurationDataset(String name)
      Parameters:
      name - the scenario name
      Returns:
      a dataset plotting the average scenario duration
    • thinkTimeDataset

      org.jfree.data.xy.XYDataset thinkTimeDataset()
      Returns:
      a dataset plotting the think time
    • numberOfApplicationsDataset

      org.jfree.data.xy.XYDataset numberOfApplicationsDataset()
      Returns:
      a dataset plotting the number of active applications
    • scenarioDataset

      org.jfree.data.xy.XYDataset scenarioDataset()
      Returns:
      a dataset plotting the number of runs each usage scenario is being run per second
    • memoryUsageDataset

      org.jfree.data.xy.XYDataset memoryUsageDataset()
      Returns:
      a dataset plotting the memory usage of this load test model
    • systemLoadDataset

      org.jfree.data.xy.XYDataset systemLoadDataset()
      Returns:
      a dataset plotting the system load of this load test model
    • scenarioFailureDataset

      org.jfree.data.xy.XYDataset scenarioFailureDataset()
      Returns:
      a dataset plotting the failure rate of each usage scenario
    • loadTestModel

      static <T> LoadTestModel<T> loadTestModel(LoadTest<T> loadTest)
      Type Parameters:
      T - the application type
      Parameters:
      loadTest - the load test
      Returns:
      a new LoadTestModel instance based on the given load test