Package org.acemq.workloads.endurance
Record Class Reading
java.lang.Object
java.lang.Record
org.acemq.workloads.endurance.Reading
- Record Components:
epoch- seconds since the epochphase-baseline,cyclingorfinallang- the client's namerssKb- resident memory in kBfds- open file descriptorsthreads- threadspublished- the load's own cumulative counter, -1 when unreadableconsumed- likewiseconnections- connections on the whole cluster at the time, -1 when unreadable
public record Reading(long epoch, String phase, String lang, long rssKb, long fds, long threads, long published, long consumed, long connections)
extends Record
One client, read once from outside: one line of the readings TSV.
A client that is gone is recorded rather than skipped, with zeros and -1 counters,
because a dead load has to reach the verdict: the one thing it cannot do is grow.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theconnectionsrecord component.longconsumed()Returns the value of theconsumedrecord component.longepoch()Returns the value of theepochrecord component.final booleanIndicates whether some other object is "equal to" this one.longfds()Returns the value of thefdsrecord component.final inthashCode()Returns a hash code value for this object.lang()Returns the value of thelangrecord component.static Readingphase()Returns the value of thephaserecord component.longReturns the value of thepublishedrecord component.longrssKb()Returns the value of therssKbrecord component.longthreads()Returns the value of thethreadsrecord component.final StringtoString()Returns a string representation of this record class.tsv()
-
Field Details
-
HEADER
The TSV header, unchanged from the script that first wrote it.- See Also:
-
-
Constructor Details
-
Reading
public Reading(long epoch, String phase, String lang, long rssKb, long fds, long threads, long published, long consumed, long connections) Creates an instance of aReadingrecord class.- Parameters:
epoch- the value for theepochrecord componentphase- the value for thephaserecord componentlang- the value for thelangrecord componentrssKb- the value for therssKbrecord componentfds- the value for thefdsrecord componentthreads- the value for thethreadsrecord componentpublished- the value for thepublishedrecord componentconsumed- the value for theconsumedrecord componentconnections- the value for theconnectionsrecord component
-
-
Method Details
-
tsv
- Returns:
- this reading as a TSV line, without the newline
-
parse
- Returns:
- the reading a TSV line holds, or null for a header or a malformed line
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
epoch
public long epoch()Returns the value of theepochrecord component.- Returns:
- the value of the
epochrecord component
-
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
lang
Returns the value of thelangrecord component.- Returns:
- the value of the
langrecord component
-
rssKb
public long rssKb()Returns the value of therssKbrecord component.- Returns:
- the value of the
rssKbrecord component
-
fds
public long fds()Returns the value of thefdsrecord component.- Returns:
- the value of the
fdsrecord component
-
threads
public long threads()Returns the value of thethreadsrecord component.- Returns:
- the value of the
threadsrecord component
-
published
public long published()Returns the value of thepublishedrecord component.- Returns:
- the value of the
publishedrecord component
-
consumed
public long consumed()Returns the value of theconsumedrecord component.- Returns:
- the value of the
consumedrecord component
-
connections
public long connections()Returns the value of theconnectionsrecord component.- Returns:
- the value of the
connectionsrecord component
-