Package io.hyperfoil.api.config
Class Phase
java.lang.Object
io.hyperfoil.api.config.Phase
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SerializableSupplier<Benchmark>final longfinal intfinal booleanfinal intprotected static final org.apache.logging.log4j.Loggerfinal longfinal Modelfinal Stringfinal Scenariofinal Stringfinal Collection<String>final Collection<String>final longfinal StartWithDelayfinal Collection<String>protected static final boolean -
Constructor Summary
ConstructorsConstructorDescriptionPhase(SerializableSupplier<Benchmark> benchmark, int id, int iteration, String name, Scenario scenario, long startTime, Collection<String> startAfter, Collection<String> startAfterStrict, Collection<String> terminateAfterStrict, long duration, long maxDuration, String sharedResources, boolean isWarmup, Model model, Map<String, SLA[]> customSlas, StartWithDelay startWithDelay) -
Method Summary
-
Field Details
-
log
protected static final org.apache.logging.log4j.Logger log -
trace
protected static final boolean trace -
benchmark
-
id
public final int id -
iteration
public final int iteration -
name
-
scenario
-
startTime
public final long startTime -
startAfter
-
startAfterStrict
-
terminateAfterStrict
-
duration
public final long duration -
maxDuration
public final long maxDuration -
model
-
isWarmup
public final boolean isWarmup -
customSlas
-
startWithDelay
-
-
Constructor Details
-
Phase
public Phase(SerializableSupplier<Benchmark> benchmark, int id, int iteration, String name, Scenario scenario, long startTime, Collection<String> startAfter, Collection<String> startAfterStrict, Collection<String> terminateAfterStrict, long duration, long maxDuration, String sharedResources, boolean isWarmup, Model model, Map<String, SLA[]> customSlas, StartWithDelay startWithDelay)
-
-
Method Details
-
id
public int id() -
name
-
scenario
-
startTime
public long startTime()- Returns:
- Start time in milliseconds after benchmark start, or negative value if the phase should start immediately
after its dependencies (
startAfter()andstartAfterStrict()are satisfied.
-
startAfter
- Returns:
- Phases that must be finished (not starting any further user sessions) in order to start.
-
startAfterStrict
- Returns:
- Phases that must be terminated (not running any user sessions) in order to start.
-
terminateAfterStrict
- Returns:
- Phases that must be terminated in order to terminate this phase.
-
duration
public long duration()- Returns:
- Duration in milliseconds over which new user sessions should be started.
-
maxDuration
public long maxDuration()- Returns:
- Duration in milliseconds over which user sessions can run. After this time no more requests are allowed and the phase should terminate.
-
benchmark
-
description
-
startWithDelay
- Returns:
- Start with delay object defining the phase to which it is coupled, the current phase will start after a fixed time (delay) from the start of the coupled phase.
-
getDependencies
Compute and return all phase's dependencies- Returns:
- list of phase names
-