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 interfaceALoadTest.Scenariobuilder.static interfacePerforms a load test scenario.static interfaceDescribes the results of a load test scenario run -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> LoadTest.Scenario.Builder<T>builder(LoadTest.Scenario.Performer<T> performer) intname()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.Scenarioinstance
-
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.Scenarioinstance
-