Module is.codion.common.model
Package is.codion.common.model.loadtest
Interface LoadTest.Scenario<T>
- Type Parameters:
T
- the type used to run the scenario
public static interface LoadTest.Scenario<T>
Specifies a load test usage scenario.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
ALoadTest.Scenario
builder.static interface
Performs a load test scenario.static interface
Describes the results of a load test scenario run -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> LoadTest.Scenario.Builder<T>
builder
(LoadTest.Scenario.Performer<T> performer) int
name()
Runs this scenario with the given applicationstatic <T> LoadTest.Scenario<T>
scenario
(LoadTest.Scenario.Performer<T> performer) static <T> LoadTest.Scenario<T>
scenario
(LoadTest.Scenario.Performer<T> performer, int defaultWeight)
-
Method Details
-
name
String name()- Returns:
- the name of this scenario
-
defaultWeight
int defaultWeight()- Returns:
- the default weight for this scenario, 1 by default
-
run
Runs this scenario with the given application- Parameters:
application
- the application to use- Returns:
- the run result
-
builder
- Type Parameters:
T
- the load test application type- Parameters:
performer
- the scenario performer- Returns:
- a new Builder
-
scenario
- Type Parameters:
T
- the load test application type- Parameters:
performer
- the scenario performer- Returns:
- a new
LoadTest.Scenario
instance
-
scenario
static <T> LoadTest.Scenario<T> scenario(LoadTest.Scenario.Performer<T> performer, int defaultWeight) - Type Parameters:
T
- the load test application type- Parameters:
performer
- the scenario performerdefaultWeight
- the default scenario weight- Returns:
- a new
LoadTest.Scenario
instance
-