Record Class Status
java.lang.Object
java.lang.Record
io.nosqlbench.nb.api.components.status.Status
public record Status(NBLabels labels, NBInvokableState state, long started_epoch_ms, long session_time_ms, long heartbeat_interval_ms, long heartbeat_epoch_ms, List<Status> substatus)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStatus(NBLabels labels, NBInvokableState state, long started_epoch_ms, long session_time_ms, long heartbeat_interval_ms, long heartbeat_epoch_ms, List<Status> substatus) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theheartbeat_epoch_msrecord component.longReturns the value of theheartbeat_interval_msrecord component.labels()Returns the value of thelabelsrecord component.longReturns the value of thesession_time_msrecord component.longReturns the value of thestarted_epoch_msrecord component.state()Returns the value of thestaterecord component.Returns the value of thesubstatusrecord component.toMap()toString()Returns a string representation of this record class.toYaml()withHeartbeatDetails(long new_heartbeat_interval_ms, long new_heartbeat_ms_epoch)
-
Field Details
-
dump
public static final org.snakeyaml.engine.v2.api.Dump dump
-
-
Constructor Details
-
Status
public Status(NBLabels labels, NBInvokableState state, long started_epoch_ms, long session_time_ms, long heartbeat_interval_ms, long heartbeat_epoch_ms, List<Status> substatus) Creates an instance of aStatusrecord class.- Parameters:
labels- the value for thelabelsrecord componentstate- the value for thestaterecord componentstarted_epoch_ms- the value for thestarted_epoch_msrecord componentsession_time_ms- the value for thesession_time_msrecord componentheartbeat_interval_ms- the value for theheartbeat_interval_msrecord componentheartbeat_epoch_ms- the value for theheartbeat_epoch_msrecord componentsubstatus- the value for thesubstatusrecord component
-
-
Method Details
-
withHeartbeatDetails
-
toYaml
-
toMap
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
labels
Returns the value of thelabelsrecord component.- Returns:
- the value of the
labelsrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
started_epoch_ms
public long started_epoch_ms()Returns the value of thestarted_epoch_msrecord component.- Returns:
- the value of the
started_epoch_msrecord component
-
session_time_ms
public long session_time_ms()Returns the value of thesession_time_msrecord component.- Returns:
- the value of the
session_time_msrecord component
-
heartbeat_interval_ms
public long heartbeat_interval_ms()Returns the value of theheartbeat_interval_msrecord component.- Returns:
- the value of the
heartbeat_interval_msrecord component
-
heartbeat_epoch_ms
public long heartbeat_epoch_ms()Returns the value of theheartbeat_epoch_msrecord component.- Returns:
- the value of the
heartbeat_epoch_msrecord component
-
substatus
-