Package is.codion.tools.loadtest.model
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.static interfaceA scenario exception -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the accumulated chart datavoidclearExceptions(String scenarioName) Clears the exceptions collected from running the given scenarioexceptions(String scenarioName) intloadTest()static <T> LoadTestModel<T> loadTestModel(LoadTest<T> loadTest) org.jfree.data.xy.XYDatasetorg.jfree.data.xy.XYDatasetvoidRemoves the selected applicationsvoidResets the statisticsorg.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
- Returns:
- the underlying
LoadTestinstance
-
applicationTableModel
FilterTableModel<LoadTestModel.ApplicationRow,String> 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
-
chartStatistics
State chartStatistics()- Returns:
- the
Statecontrolling whether this load test displays statistics in charts
-
autoRefreshApplications
State autoRefreshApplications()- Returns:
- the
Statecontrolling 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
-
resetStatistics
void resetStatistics()Resets the statistics -
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
-