Package is.codion.tools.loadtest
Interface LoadTest.Scenario.Result
- Enclosing interface:
- LoadTest.Scenario<T>
public static interface LoadTest.Scenario.Result
Describes the results of a load test scenario run
-
Method Summary
Modifier and TypeMethodDescriptionint
duration()
static LoadTest.Scenario.Result
scenario()
static LoadTest.Scenario.Result
boolean
-
Method Details
-
scenario
String scenario()- Returns:
- the usage scenario name
-
duration
int duration()- Returns:
- the duration in microseconds, -1 in case of failure
-
successful
boolean successful()- Returns:
- true if the run was successful
-
exception
- Returns:
- the exception in case the run was unsuccessful, otherwise an empty optional
-
success
- Parameters:
scenarioName
- the name of the usage scenarioduration
- the duriation in microseconds- Returns:
- a new
LoadTest.Scenario.Result
instance
-
failure
- Parameters:
scenarioName
- the name of the usage scenarioexception
- the exception- Returns:
- a new
LoadTest.Scenario.Result
instance
-