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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTable model row describing a load test application. -
Method Summary
Modifier and TypeMethodDescriptionis.codion.swing.common.model.component.table.FilteredTableModel<LoadTestModel.ApplicationRow,Integer> is.codion.common.state.StatevoidClears the accumulated chart datavoidclearExceptions(String scenarioName) Clears the exceptions collected from running the given scenariois.codion.common.state.Stateexceptions(String scenarioName) intis.codion.common.model.loadtest.LoadTest<T>loadTest()static <T> LoadTestModel<T>loadTestModel(is.codion.common.model.loadtest.LoadTest<T> loadTest) org.jfree.data.xy.XYDatasetorg.jfree.data.xy.XYDatasetvoidRemoves the selected applicationsvoidResets the run countersorg.jfree.data.xy.XYDatasetorg.jfree.data.xy.IntervalXYDatasetorg.jfree.data.xy.XYDatasetvoidsetUpdateInterval(int updateInterval) intsuccessfulRunCount(String scenarioName) org.jfree.data.xy.XYDatasetorg.jfree.data.xy.XYDatasetinttotalRunCount(String scenarioName) intunsuccessfulRunCount(String scenarioName)
-
Method Details
-
loadTest
is.codion.common.model.loadtest.LoadTest<T> loadTest()- Returns:
- the underlying
LoadTestinstance
-
applicationTableModel
is.codion.swing.common.model.component.table.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
is.codion.common.state.State collectChartData()- Returns:
- the state controlling whether this load test collects chart data
-
autoRefreshApplications
is.codion.common.state.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
LoadTestModelinstance based on the given load test
-