Record Class SweepProgressEvent
- Record Components:
stage- current workflow stagepercent- 0-100, computed from the runs finished out of the runs expected (done/totalon the snapshot, both run-level counts — not the shard counts, which partition units of work rather than runs).nullon stage transitions before the first pollcoverageRatio- fraction (0-1) of the requested window that actually holds data, as reported once preparation completes. Non-nullonly on the finalBacktestStage.PREPARINGevent. Worth reading on a sweep in particular: a thinly covered window is about to be scored N times oversnapshot- the platform's progress record for the sweep. Non-nullonly onBacktestStage.EXECUTINGevents
The snapshot is where the detail lives, and two of its fields are
easy to add together by mistake:
SweepProgress.getAborted()counts individual runs that executed and aborted — a row-level count.SweepProgress.getFailedShards()counts whole units of work (shards, or folds on a walk-forward sweep) that failed and will not be retried, having never reported anything.
They measure different things: a shard that dies before producing a single
row leaves aborted at zero, which is exactly why the second count
exists. Summing them double-counts nothing and describes nothing.
SweepProgress.getRetrying() is not a failure count either — those
units failed on something transient and are queued to be attempted again, so
a sweep with a non-zero value there is still expected to finish.
SweepProgress.getEtaSeconds() is omitted, never zero when
it cannot be computed: a sweep with nothing finished has no observed rate to
extrapolate from, and a zero would read as "about to finish". When present it
runs conservative — it excludes queue wait entirely, and a sweep that spent
part of its life being retried will have diluted the rate it is derived from.
-
Constructor Summary
ConstructorsConstructorDescriptionSweepProgressEvent(BacktestStage stage, Double percent) Convenience form for stage transitions and preparation progress;coverageRatioandsnapshotdefault tonull.SweepProgressEvent(BacktestStage stage, Double percent, Double coverageRatio, com.qtsurfer.api.client.model.SweepProgress snapshot) Creates an instance of aSweepProgressEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoverageRatiorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.percent()Returns the value of thepercentrecord component.com.qtsurfer.api.client.model.SweepProgresssnapshot()Returns the value of thesnapshotrecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SweepProgressEvent
Convenience form for stage transitions and preparation progress;coverageRatioandsnapshotdefault tonull.- Parameters:
stage- current workflow stagepercent- 0-100, ornull
-
SweepProgressEvent
public SweepProgressEvent(BacktestStage stage, Double percent, Double coverageRatio, com.qtsurfer.api.client.model.SweepProgress snapshot) Creates an instance of aSweepProgressEventrecord class.- Parameters:
stage- the value for thestagerecord componentpercent- the value for thepercentrecord componentcoverageRatio- the value for thecoverageRatiorecord componentsnapshot- the value for thesnapshotrecord component
-
-
Method Details
-
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. -
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. -
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 withObjects::equals(Object,Object). -
stage
Returns the value of thestagerecord component.- Returns:
- the value of the
stagerecord component
-
percent
Returns the value of thepercentrecord component.- Returns:
- the value of the
percentrecord component
-
coverageRatio
Returns the value of thecoverageRatiorecord component.- Returns:
- the value of the
coverageRatiorecord component
-
snapshot
public com.qtsurfer.api.client.model.SweepProgress snapshot()Returns the value of thesnapshotrecord component.- Returns:
- the value of the
snapshotrecord component
-