Record Class RunRegistry.RunInfo

java.lang.Object
java.lang.Record
ai.pipestream.module.pipelineprobe.pipelinecrawl.RunRegistry.RunInfo
Record Components:
runId - registry id (re-attach key)
source - crawl source enum name
state - RUNNING or TERMINAL
startedAt - when the run thread started
terminalAt - when the run finished (null while running)
journalSize - events currently held
journalDropped - events dropped past the journal cap
lastMessage - most recent event message (progress at a glance)
Enclosing class:
RunRegistry

public static record RunRegistry.RunInfo(String runId, String source, RunRegistry.RunState state, Instant startedAt, Instant terminalAt, int journalSize, long journalDropped, String lastMessage) extends Record
Summary row for one run.
  • Constructor Details

    • RunInfo

      public RunInfo(String runId, String source, RunRegistry.RunState state, Instant startedAt, Instant terminalAt, int journalSize, long journalDropped, String lastMessage)
      Creates an instance of a RunInfo record class.
      Parameters:
      runId - the value for the runId record component
      source - the value for the source record component
      state - the value for the state record component
      startedAt - the value for the startedAt record component
      terminalAt - the value for the terminalAt record component
      journalSize - the value for the journalSize record component
      journalDropped - the value for the journalDropped record component
      lastMessage - the value for the lastMessage record component
  • Method Details

    • toString

      public final 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.
    • runId

      public String runId()
      Returns the value of the runId record component.
      Returns:
      the value of the runId record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • state

      public RunRegistry.RunState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • startedAt

      public Instant startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • terminalAt

      public Instant terminalAt()
      Returns the value of the terminalAt record component.
      Returns:
      the value of the terminalAt record component
    • journalSize

      public int journalSize()
      Returns the value of the journalSize record component.
      Returns:
      the value of the journalSize record component
    • journalDropped

      public long journalDropped()
      Returns the value of the journalDropped record component.
      Returns:
      the value of the journalDropped record component
    • lastMessage

      public String lastMessage()
      Returns the value of the lastMessage record component.
      Returns:
      the value of the lastMessage record component