Package org.acemq.workloads.endurance
Record Class ClientLauncher.Status
java.lang.Object
java.lang.Record
org.acemq.workloads.endurance.ClientLauncher.Status
- Record Components:
pid- the live pid, or -1 when stoppedlastSampleAge- since the last sample'sat, or null when it has nonepublishRate- the last sample's, or NaNconsumeRate- the last sample's, or NaN
- Enclosing class:
ClientLauncher
public static record ClientLauncher.Status(String name, boolean running, long pid, Duration lastSampleAge, double publishRate, double consumeRate, Path samples)
extends Record
What a load is doing right now.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theconsumeRaterecord 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 thelastSampleAgerecord component.name()Returns the value of thenamerecord component.longpid()Returns the value of thepidrecord component.doubleReturns the value of thepublishRaterecord component.booleanrunning()Returns the value of therunningrecord component.samples()Returns the value of thesamplesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Status
public Status(String name, boolean running, long pid, Duration lastSampleAge, double publishRate, double consumeRate, Path samples) Creates an instance of aStatusrecord class.- Parameters:
name- the value for thenamerecord componentrunning- the value for therunningrecord componentpid- the value for thepidrecord componentlastSampleAge- the value for thelastSampleAgerecord componentpublishRate- the value for thepublishRaterecord componentconsumeRate- the value for theconsumeRaterecord componentsamples- the value for thesamplesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
running
public boolean running()Returns the value of therunningrecord component.- Returns:
- the value of the
runningrecord component
-
pid
public long pid()Returns the value of thepidrecord component.- Returns:
- the value of the
pidrecord component
-
lastSampleAge
Returns the value of thelastSampleAgerecord component.- Returns:
- the value of the
lastSampleAgerecord component
-
publishRate
public double publishRate()Returns the value of thepublishRaterecord component.- Returns:
- the value of the
publishRaterecord component
-
consumeRate
public double consumeRate()Returns the value of theconsumeRaterecord component.- Returns:
- the value of the
consumeRaterecord component
-
samples
Returns the value of thesamplesrecord component.- Returns:
- the value of the
samplesrecord component
-