Package org.mockserver.mock.action.http
Class ChaosExperimentOrchestrator.ExperimentDefinition
java.lang.Object
org.mockserver.mock.action.http.ChaosExperimentOrchestrator.ExperimentDefinition
- Enclosing class:
- ChaosExperimentOrchestrator
An experiment definition: name, ordered stages, whether to loop, and an
optional deferred start (
startDelayMillis and/or cronSchedule).
When no scheduling fields are set the experiment starts immediately
(back-compatible default).-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExperimentDefinition(String name, List<ChaosExperimentOrchestrator.Stage> stages, boolean loop) ExperimentDefinition(String name, List<ChaosExperimentOrchestrator.Stage> stages, boolean loop, long startDelayMillis, String cronSchedule) -
Method Summary
-
Field Details
-
name
-
stages
-
loop
public final boolean loop -
startDelayMillis
public final long startDelayMillisFixed delay before stage 0 is applied;0= start immediately. -
cronSchedule
Standard 5-field cron expression for the start time;null/blank = none.
-
-
Constructor Details
-
ExperimentDefinition
public ExperimentDefinition(String name, List<ChaosExperimentOrchestrator.Stage> stages, boolean loop) -
ExperimentDefinition
public ExperimentDefinition(String name, List<ChaosExperimentOrchestrator.Stage> stages, boolean loop, long startDelayMillis, String cronSchedule)
-
-
Method Details
-
fromJson
public static ChaosExperimentOrchestrator.ExperimentDefinition fromJson(com.fasterxml.jackson.databind.JsonNode node) Deserializes an experiment definition from a JSON node. -
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson()Serializes this experiment definition to a JSON node.
-