Package org.acemq.workloads.scenario
Record Class ScenarioFile.ExpectJson
java.lang.Object
java.lang.Record
org.acemq.workloads.scenario.ScenarioFile.ExpectJson
- Record Components:
p50Below- the median must stay under thisp99Below- the 99th percentile must stay under thisp999Below- the 99.9th percentile must stay under thisconsumeRateAtLeast- this queue must handle at least this many a secondachievedRateAtLeast- this producer must offer at least this many a secondwithinPercentOfOffered- how far the offered rate may fall short, as a percentagenoFailures- every publish must succeednoBacklog- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theachievedRateAtLeastrecord component.Returns the value of theconsumeRateAtLeastrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenoBacklogrecord component.Returns the value of thenoFailuresrecord component.p50Below()Returns the value of thep50Belowrecord component.Returns the value of thep999Belowrecord component.p99Below()Returns the value of thep99Belowrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewithinPercentOfOfferedrecord component.
-
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 aExpectJsonrecord class.- Parameters:
p50Below- the value for thep50Belowrecord componentp99Below- the value for thep99Belowrecord componentp999Below- the value for thep999Belowrecord componentconsumeRateAtLeast- the value for theconsumeRateAtLeastrecord componentachievedRateAtLeast- the value for theachievedRateAtLeastrecord componentwithinPercentOfOffered- the value for thewithinPercentOfOfferedrecord componentnoFailures- the value for thenoFailuresrecord componentnoBacklog- the value for thenoBacklogrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
p50Below
Returns the value of thep50Belowrecord component.- Returns:
- the value of the
p50Belowrecord component
-
p99Below
Returns the value of thep99Belowrecord component.- Returns:
- the value of the
p99Belowrecord component
-
p999Below
Returns the value of thep999Belowrecord component.- Returns:
- the value of the
p999Belowrecord component
-
consumeRateAtLeast
Returns the value of theconsumeRateAtLeastrecord component.- Returns:
- the value of the
consumeRateAtLeastrecord component
-
achievedRateAtLeast
Returns the value of theachievedRateAtLeastrecord component.- Returns:
- the value of the
achievedRateAtLeastrecord component
-
withinPercentOfOffered
Returns the value of thewithinPercentOfOfferedrecord component.- Returns:
- the value of the
withinPercentOfOfferedrecord component
-
noFailures
Returns the value of thenoFailuresrecord component.- Returns:
- the value of the
noFailuresrecord component
-
noBacklog
Returns the value of thenoBacklogrecord component.- Returns:
- the value of the
noBacklogrecord component
-