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 namestate- RUNNING or TERMINALstartedAt- when the run thread startedterminalAt- when the run finished (null while running)journalSize- events currently heldjournalDropped- events dropped past the journal caplastMessage- most recent event message (progress at a glance)
- Enclosing class:
RunRegistry
-
Constructor Summary
Constructors -
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 thejournalDroppedrecord component.intReturns the value of thejournalSizerecord component.Returns the value of thelastMessagerecord component.runId()Returns the value of therunIdrecord component.source()Returns the value of thesourcerecord component.Returns the value of thestartedAtrecord component.state()Returns the value of thestaterecord component.Returns the value of theterminalAtrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aRunInforecord class.- Parameters:
runId- the value for therunIdrecord componentsource- the value for thesourcerecord componentstate- the value for thestaterecord componentstartedAt- the value for thestartedAtrecord componentterminalAt- the value for theterminalAtrecord componentjournalSize- the value for thejournalSizerecord componentjournalDropped- the value for thejournalDroppedrecord componentlastMessage- the value for thelastMessagerecord component
-
-
Method Details
-
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. -
runId
-
source
-
state
-
startedAt
-
terminalAt
Returns the value of theterminalAtrecord component.- Returns:
- the value of the
terminalAtrecord component
-
journalSize
public int journalSize()Returns the value of thejournalSizerecord component.- Returns:
- the value of the
journalSizerecord component
-
journalDropped
public long journalDropped()Returns the value of thejournalDroppedrecord component.- Returns:
- the value of the
journalDroppedrecord component
-
lastMessage
Returns the value of thelastMessagerecord component.- Returns:
- the value of the
lastMessagerecord component
-