Record Class IndexingLedgerPoller.CrawlProgress
java.lang.Object
java.lang.Record
ai.pipestream.module.pipelineprobe.pipelinecrawl.IndexingLedgerPoller.CrawlProgress
- Record Components:
total- total ledger rows recorded for the crawlsuccess- docs OSM indexed successfullypartialSuccess- docs OSM indexed with partial successfailedTerminal- docs that hard-failed and will not be retriedfailedRetrying- docs that failed but are still being retriedskipped- docs OSM skippedinFlight- docs still being processed (not yet terminal)
- Enclosing class:
IndexingLedgerPoller
public static record IndexingLedgerPoller.CrawlProgress(int total, int success, int partialSuccess, int failedTerminal, int failedRetrying, int skipped, int inFlight)
extends Record
Receipt counts for one crawl, partitioned the way the run report
wants them.
terminal() is "OSM is done with this doc"
regardless of how it ended.-
Constructor Summary
ConstructorsConstructorDescriptionCrawlProgress(int total, int success, int partialSuccess, int failedTerminal, int failedRetrying, int skipped, int inFlight) Creates an instance of aCrawlProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfailed()Docs that ended in a state the e2e should call a failure.intReturns the value of thefailedRetryingrecord component.intReturns the value of thefailedTerminalrecord component.final inthashCode()Returns a hash code value for this object.intinFlight()Returns the value of theinFlightrecord component.intReturns the value of thepartialSuccessrecord component.intskipped()Returns the value of theskippedrecord component.intsuccess()Returns the value of thesuccessrecord component.intterminal()Docs OSM has finished with — success, partial, hard-failed, or skipped.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
CrawlProgress
public CrawlProgress(int total, int success, int partialSuccess, int failedTerminal, int failedRetrying, int skipped, int inFlight) Creates an instance of aCrawlProgressrecord class.- Parameters:
total- the value for thetotalrecord componentsuccess- the value for thesuccessrecord componentpartialSuccess- the value for thepartialSuccessrecord componentfailedTerminal- the value for thefailedTerminalrecord componentfailedRetrying- the value for thefailedRetryingrecord componentskipped- the value for theskippedrecord componentinFlight- the value for theinFlightrecord component
-
-
Method Details
-
terminal
public int terminal()Docs OSM has finished with — success, partial, hard-failed, or skipped.- Returns:
- the count of docs OSM has reached a terminal state for
-
failed
public int failed()Docs that ended in a state the e2e should call a failure.- Returns:
- the count of hard-failed (terminal) docs
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
total
-
success
-
partialSuccess
public int partialSuccess()Returns the value of thepartialSuccessrecord component.- Returns:
- the value of the
partialSuccessrecord component
-
failedTerminal
public int failedTerminal()Returns the value of thefailedTerminalrecord component.- Returns:
- the value of the
failedTerminalrecord component
-
failedRetrying
public int failedRetrying()Returns the value of thefailedRetryingrecord component.- Returns:
- the value of the
failedRetryingrecord component
-
skipped
-
inFlight
-