Interface LoadTestModel<T>
- Type Parameters:
T
- the load test application type
public interface LoadTestModel<T>
Collects chart data for a load test.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Table model row describing a load test application. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the accumulated chart datavoid
clearExceptions
(String scenarioName) Clears the exceptions collected from running the given scenarioexceptions
(String scenarioName) int
loadTest()
static <T> LoadTestModel<T>
loadTestModel
(LoadTest<T> loadTest) org.jfree.data.xy.XYDataset
org.jfree.data.xy.XYDataset
void
Removes the selected applicationsvoid
Resets the run countersorg.jfree.data.xy.XYDataset
org.jfree.data.xy.IntervalXYDataset
org.jfree.data.xy.XYDataset
void
setUpdateInterval
(int updateInterval) int
successfulRunCount
(String scenarioName) org.jfree.data.xy.XYDataset
org.jfree.data.xy.XYDataset
int
totalRunCount
(String scenarioName) int
unsuccessfulRunCount
(String scenarioName)
-
Method Details
-
loadTest
- Returns:
- the underlying
LoadTest
instance
-
applicationTableModel
FilteredTableModel<LoadTestModel.ApplicationRow,Integer> 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
- Parameters:
scenarioName
- the scenario name- Returns:
- the total number of runs since the counter was reset
-
successfulRunCount
- Parameters:
scenarioName
- the scenario name- Returns:
- the total number of successful runs since the counter was reset
-
unsuccessfulRunCount
- 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
- Parameters:
scenarioName
- the scenario name- Returns:
- the exceptions collected from running the scenario
-
clearExceptions
Clears the exceptions collected from running the given scenario- Parameters:
scenarioName
- the scenario name
-
scenarioDurationDataset
- 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
- Type Parameters:
T
- the application type- Parameters:
loadTest
- the load test- Returns:
- a new
LoadTestModel
instance based on the given load test
-