Class ChaosExperimentOrchestrator.ExperimentDefinition

java.lang.Object
org.mockserver.mock.action.http.ChaosExperimentOrchestrator.ExperimentDefinition
Enclosing class:
ChaosExperimentOrchestrator

public static class ChaosExperimentOrchestrator.ExperimentDefinition extends Object
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 Details

    • name

      public final String name
    • stages

    • loop

      public final boolean loop
    • startDelayMillis

      public final long startDelayMillis
      Fixed delay before stage 0 is applied; 0 = start immediately.
    • cronSchedule

      public final String cronSchedule
      Standard 5-field cron expression for the start time; null/blank = none.
  • Constructor Details

  • 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.