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 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 a Status record class.
      Parameters:
      labels - the value for the labels record component
      state - the value for the state record component
      started_epoch_ms - the value for the started_epoch_ms record component
      session_time_ms - the value for the session_time_ms record component
      heartbeat_interval_ms - the value for the heartbeat_interval_ms record component
      heartbeat_epoch_ms - the value for the heartbeat_epoch_ms record component
      substatus - the value for the substatus record component
  • Method Details

    • withHeartbeatDetails

      public Status withHeartbeatDetails(long new_heartbeat_interval_ms, long new_heartbeat_ms_epoch)
    • toYaml

      public String toYaml()
    • toMap

      public Map<String,Object> toMap()
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • labels

      public NBLabels labels()
      Returns the value of the labels record component.
      Returns:
      the value of the labels record component
    • state

      public NBInvokableState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • started_epoch_ms

      public long started_epoch_ms()
      Returns the value of the started_epoch_ms record component.
      Returns:
      the value of the started_epoch_ms record component
    • session_time_ms

      public long session_time_ms()
      Returns the value of the session_time_ms record component.
      Returns:
      the value of the session_time_ms record component
    • heartbeat_interval_ms

      public long heartbeat_interval_ms()
      Returns the value of the heartbeat_interval_ms record component.
      Returns:
      the value of the heartbeat_interval_ms record component
    • heartbeat_epoch_ms

      public long heartbeat_epoch_ms()
      Returns the value of the heartbeat_epoch_ms record component.
      Returns:
      the value of the heartbeat_epoch_ms record component
    • substatus

      public List<Status> substatus()
      Returns the value of the substatus record component.
      Returns:
      the value of the substatus record component