Record Class AdapterMetricsSnapshot
java.lang.Object
java.lang.Record
org.j7m.middleware.adapter.spi.AdapterMetricsSnapshot
- Record Components:
scenariosRun- number of TCK scenarios runpassed- number of passed scenariosfailed- number of failed scenariosunsupported- number of unsupported scenariosredactionFailures- number of redaction failures detected
public record AdapterMetricsSnapshot(long scenariosRun, long passed, long failed, long unsupported, long redactionFailures)
extends Record
Immutable adapter metrics summary.
The record is thread-safe and safe for status output. Counters are cumulative for the owning provider or TCK run. Negative values are rejected because they would make compatibility and audit reports ambiguous.
-
Constructor Summary
ConstructorsConstructorDescriptionAdapterMetricsSnapshot(long scenariosRun, long passed, long failed, long unsupported, long redactionFailures) Creates an adapter metrics snapshot. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.longpassed()Returns the value of thepassedrecord component.longReturns the value of theredactionFailuresrecord component.longReturns the value of thescenariosRunrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theunsupportedrecord component.
-
Constructor Details
-
AdapterMetricsSnapshot
public AdapterMetricsSnapshot(long scenariosRun, long passed, long failed, long unsupported, long redactionFailures) Creates an adapter metrics snapshot.
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
scenariosRun
public long scenariosRun()Returns the value of thescenariosRunrecord component.- Returns:
- the value of the
scenariosRunrecord component
-
passed
-
failed
-
unsupported
public long unsupported()Returns the value of theunsupportedrecord component.- Returns:
- the value of the
unsupportedrecord component
-
redactionFailures
public long redactionFailures()Returns the value of theredactionFailuresrecord component.- Returns:
- the value of the
redactionFailuresrecord component
-