Record Class ScenarioFile.ExpectJson

java.lang.Object
java.lang.Record
org.acemq.workloads.scenario.ScenarioFile.ExpectJson
Record Components:
p50Below - the median must stay under this
p99Below - the 99th percentile must stay under this
p999Below - the 99.9th percentile must stay under this
consumeRateAtLeast - this queue must handle at least this many a second
achievedRateAtLeast - this producer must offer at least this many a second
withinPercentOfOffered - how far the offered rate may fall short, as a percentage
noFailures - every publish must succeed
noBacklog - the queue must not be deeper at the end than at the start
Enclosing class:
ScenarioFile

public static record ScenarioFile.ExpectJson(String p50Below, String p99Below, String p999Below, Long consumeRateAtLeast, Long achievedRateAtLeast, Integer withinPercentOfOffered, Boolean noFailures, Boolean noBacklog) extends Record
What a node is asked to prove, in a file.

What is not stated is not checked. Durations are written the way the rest of the file writes them: 50ms, 2s.

  • Constructor Details

    • ExpectJson

      public ExpectJson(String p50Below, String p99Below, String p999Below, Long consumeRateAtLeast, Long achievedRateAtLeast, Integer withinPercentOfOffered, Boolean noFailures, Boolean noBacklog)
      Creates an instance of a ExpectJson record class.
      Parameters:
      p50Below - the value for the p50Below record component
      p99Below - the value for the p99Below record component
      p999Below - the value for the p999Below record component
      consumeRateAtLeast - the value for the consumeRateAtLeast record component
      achievedRateAtLeast - the value for the achievedRateAtLeast record component
      withinPercentOfOffered - the value for the withinPercentOfOffered record component
      noFailures - the value for the noFailures record component
      noBacklog - the value for the noBacklog record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • p50Below

      public String p50Below()
      Returns the value of the p50Below record component.
      Returns:
      the value of the p50Below record component
    • p99Below

      public String p99Below()
      Returns the value of the p99Below record component.
      Returns:
      the value of the p99Below record component
    • p999Below

      public String p999Below()
      Returns the value of the p999Below record component.
      Returns:
      the value of the p999Below record component
    • consumeRateAtLeast

      public Long consumeRateAtLeast()
      Returns the value of the consumeRateAtLeast record component.
      Returns:
      the value of the consumeRateAtLeast record component
    • achievedRateAtLeast

      public Long achievedRateAtLeast()
      Returns the value of the achievedRateAtLeast record component.
      Returns:
      the value of the achievedRateAtLeast record component
    • withinPercentOfOffered

      public Integer withinPercentOfOffered()
      Returns the value of the withinPercentOfOffered record component.
      Returns:
      the value of the withinPercentOfOffered record component
    • noFailures

      public Boolean noFailures()
      Returns the value of the noFailures record component.
      Returns:
      the value of the noFailures record component
    • noBacklog

      public Boolean noBacklog()
      Returns the value of the noBacklog record component.
      Returns:
      the value of the noBacklog record component