Class S3DispatchSubscriber.S3DispatchState
java.lang.Object
ai.pipestream.module.pipelineprobe.pipelinecrawl.S3DispatchSubscriber.S3DispatchState
- Enclosing class:
S3DispatchSubscriber
Live mirror of one crawl's connector-side state. Volatile fields, read per tick.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty state in the initial (unspecified phase, no total) condition. -
Method Summary
Modifier and TypeMethodDescriptionlongNumber of objects the connector has dispatched so far.error()The last error message reported on the status stream, if any.booleanWhether the crawl has reached the COMPLETED phase.booleanisFailed()Whether the crawl has reached the FAILED phase.ai.pipestream.connector.s3.v1.S3CrawlPhasephase()Current crawl phase last reported by the connector.longtotal()Final object count; -1 until the connector reports COMPLETED.booleanTrue when the status stream could not be established — fall back to stability gating.
-
Constructor Details
-
S3DispatchState
public S3DispatchState()Creates an empty state in the initial (unspecified phase, no total) condition.
-
-
Method Details
-
phase
public ai.pipestream.connector.s3.v1.S3CrawlPhase phase()Current crawl phase last reported by the connector.- Returns:
- the latest phase, or
S3_CRAWL_PHASE_UNSPECIFIEDif none seen yet
-
dispatched
public long dispatched()Number of objects the connector has dispatched so far.- Returns:
- the latest dispatched-object count
-
total
public long total()Final object count; -1 until the connector reports COMPLETED.- Returns:
- the final object total, or -1 if the crawl has not yet completed
-
error
The last error message reported on the status stream, if any.- Returns:
- the error message, or
nullif no error has been reported
-
isComplete
public boolean isComplete()Whether the crawl has reached the COMPLETED phase.- Returns:
trueif the latest phase is COMPLETED
-
isFailed
public boolean isFailed()Whether the crawl has reached the FAILED phase.- Returns:
trueif the latest phase is FAILED
-