Record Class IndexPushDriver.PushSnapshot
java.lang.Object
java.lang.Record
ai.pipestream.module.pipelineprobe.opensearch.IndexPushDriver.PushSnapshot
- Record Components:
jobId- the job's idplanIds- plan ids OSS fans the docs out toopensearchInstance- Consul service name of the target OS clusterstage- which court-1000 corpus is being pushedconcurrency- the effective in-flight permit captotalRequested- number of docs the job was asked to pushsent- docs sent on the stream so farackedOk- docs acknowledged successfullyackedFail- docs acknowledged with a failure outcomeinFlight- docs sent but not yet acknowledgedstartedAt- epoch millis when the job started, ornullfinishedAt- epoch millis when the job finished, ornullstate- the job's lifecycle stateerror- a fatal job-level error message, ornullfirstNackReason- first per-doc failure reason, ornullfirstGrpcError- first gRPC status error, ornullthroughputDocsPerSec- measured throughput in docs per second
- Enclosing class:
IndexPushDriver
public static record IndexPushDriver.PushSnapshot(String jobId, List<String> planIds, String opensearchInstance, String stage, int concurrency, int totalRequested, long sent, long ackedOk, long ackedFail, long inFlight, Long startedAt, Long finishedAt, String state, String error, String firstNackReason, String firstGrpcError, double throughputDocsPerSec)
extends Record
Snapshot of a push job's progress. Counters read off the
IndexPushDriver.PushJob's
atomics so the view is consistent within a single field but may skew
slightly across fields under load.
Failure-visibility fields: firstNackReason captures the
first non-success outcome's log_entries concatenation (the
actual server-side reason — usually "OpenSearch sink requires JSON
config carrying plan_ids" etc.); firstGrpcError captures
the first non-RuntimeException-wrapped gRPC status. Both stay
null until something fails; populated with the first failure only so
users see a stable reason instead of a moving target.
-
Constructor Summary
ConstructorsConstructorDescriptionPushSnapshot(String jobId, List<String> planIds, String opensearchInstance, String stage, int concurrency, int totalRequested, long sent, long ackedOk, long ackedFail, long inFlight, Long startedAt, Long finishedAt, String state, String error, String firstNackReason, String firstGrpcError, double throughputDocsPerSec) Creates an instance of aPushSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theackedFailrecord component.longackedOk()Returns the value of theackedOkrecord component.intReturns the value of theconcurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of thefinishedAtrecord component.Returns the value of thefirstGrpcErrorrecord component.Returns the value of thefirstNackReasonrecord component.final inthashCode()Returns a hash code value for this object.longinFlight()Returns the value of theinFlightrecord component.jobId()Returns the value of thejobIdrecord component.Returns the value of theopensearchInstancerecord component.planIds()Returns the value of theplanIdsrecord component.longsent()Returns the value of thesentrecord component.stage()Returns the value of thestagerecord component.Returns the value of thestartedAtrecord component.state()Returns the value of thestaterecord component.doubleReturns the value of thethroughputDocsPerSecrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalRequestedrecord component.
-
Constructor Details
-
PushSnapshot
public PushSnapshot(String jobId, List<String> planIds, String opensearchInstance, String stage, int concurrency, int totalRequested, long sent, long ackedOk, long ackedFail, long inFlight, Long startedAt, Long finishedAt, String state, String error, String firstNackReason, String firstGrpcError, double throughputDocsPerSec) Creates an instance of aPushSnapshotrecord class.- Parameters:
jobId- the value for thejobIdrecord componentplanIds- the value for theplanIdsrecord componentopensearchInstance- the value for theopensearchInstancerecord componentstage- the value for thestagerecord componentconcurrency- the value for theconcurrencyrecord componenttotalRequested- the value for thetotalRequestedrecord componentsent- the value for thesentrecord componentackedOk- the value for theackedOkrecord componentackedFail- the value for theackedFailrecord componentinFlight- the value for theinFlightrecord componentstartedAt- the value for thestartedAtrecord componentfinishedAt- the value for thefinishedAtrecord componentstate- the value for thestaterecord componenterror- the value for theerrorrecord componentfirstNackReason- the value for thefirstNackReasonrecord componentfirstGrpcError- the value for thefirstGrpcErrorrecord componentthroughputDocsPerSec- the value for thethroughputDocsPerSecrecord 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. -
jobId
-
planIds
-
opensearchInstance
Returns the value of theopensearchInstancerecord component.- Returns:
- the value of the
opensearchInstancerecord component
-
stage
-
concurrency
public int concurrency()Returns the value of theconcurrencyrecord component.- Returns:
- the value of the
concurrencyrecord component
-
totalRequested
public int totalRequested()Returns the value of thetotalRequestedrecord component.- Returns:
- the value of the
totalRequestedrecord component
-
sent
-
ackedOk
-
ackedFail
-
inFlight
-
startedAt
-
finishedAt
Returns the value of thefinishedAtrecord component.- Returns:
- the value of the
finishedAtrecord component
-
state
-
error
-
firstNackReason
Returns the value of thefirstNackReasonrecord component.- Returns:
- the value of the
firstNackReasonrecord component
-
firstGrpcError
Returns the value of thefirstGrpcErrorrecord component.- Returns:
- the value of the
firstGrpcErrorrecord component
-
throughputDocsPerSec
public double throughputDocsPerSec()Returns the value of thethroughputDocsPerSecrecord component.- Returns:
- the value of the
throughputDocsPerSecrecord component
-