Package com.qtsurfer.api.client.model
Class SweepProgress
java.lang.Object
com.qtsurfer.api.client.model.SweepProgress
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.14.0")
public class SweepProgress
extends Object
How far along a sweep is, and — when the sweep is still running — enough to tell a healthy one from a stuck one. The counts partition the shards (or, for a walk-forward sweep, the folds): every unit is either finished, failed, waiting to be retried, or not yet started.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this SweepProgress object is equal to o.etaSeconds(Long etaSeconds) failedShards(Long failedShards) Individual runs that executed and aborted.getDone()Get doneRough seconds remaining, extrapolated from the rate observed so far and assuming nothing else competes for workers.Shards (or folds) that failed and will not be retried.Units that have not reported anything yet.Get pendingShardsUnits whose last attempt failed on something transient — an I/O error, a worker that died mid-read — and which are queued to be attempted again.Get shardCountSeconds since anything last advanced.getTotal()Get totalinthashCode()notStarted(Integer notStarted) pendingShards(Integer pendingShards) voidsetAborted(Long aborted) voidvoidsetEtaSeconds(Long etaSeconds) voidsetFailedShards(Long failedShards) voidsetNotStarted(Integer notStarted) voidsetPendingShards(Integer pendingShards) voidsetRetrying(Integer retrying) voidsetShardCount(Integer shardCount) voidsetStalledSeconds(Long stalledSeconds) voidshardCount(Integer shardCount) stalledSeconds(Long stalledSeconds) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_DONE
- See Also:
-
JSON_PROPERTY_TOTAL
- See Also:
-
JSON_PROPERTY_ABORTED
- See Also:
-
JSON_PROPERTY_SHARD_COUNT
- See Also:
-
JSON_PROPERTY_PENDING_SHARDS
- See Also:
-
JSON_PROPERTY_FAILED_SHARDS
- See Also:
-
JSON_PROPERTY_RETRYING
- See Also:
-
JSON_PROPERTY_NOT_STARTED
- See Also:
-
JSON_PROPERTY_STALLED_SECONDS
- See Also:
-
JSON_PROPERTY_ETA_SECONDS
- See Also:
-
-
Constructor Details
-
SweepProgress
public SweepProgress()
-
-
Method Details
-
done
-
getDone
Get done- Returns:
- done
-
setDone
-
total
-
getTotal
Get total- Returns:
- total
-
setTotal
-
aborted
-
getAborted
Individual runs that executed and aborted. A row-level count: a shard that fails before producing any rows leaves this at 0, which is why `failedShards` exists alongside it.- Returns:
- aborted
-
setAborted
-
shardCount
-
getShardCount
Get shardCount- Returns:
- shardCount
-
setShardCount
-
pendingShards
-
getPendingShards
Get pendingShards- Returns:
- pendingShards
-
setPendingShards
-
failedShards
-
getFailedShards
Shards (or folds) that failed and will not be retried. Distinct from `aborted`: this counts whole units that never reported, not runs that ran badly.- Returns:
- failedShards
-
setFailedShards
-
retrying
-
getRetrying
Units whose last attempt failed on something transient — an I/O error, a worker that died mid-read — and which are queued to be attempted again. Not counted as failures, because they have not failed yet; a sweep with a non-zero value here is still expected to complete.- Returns:
- retrying
-
setRetrying
-
notStarted
-
getNotStarted
Units that have not reported anything yet. Covers both work still queued behind other work and work claimed by a worker that stopped before it began, which is why a sweep with a persistent value here and a rising `stalledSeconds` is worth looking at.- Returns:
- notStarted
-
setNotStarted
-
stalledSeconds
-
getStalledSeconds
Seconds since anything last advanced. Omitted on a finished sweep, where it would only measure how long ago it finished, and on sweeps submitted before this field existed.- Returns:
- stalledSeconds
-
setStalledSeconds
-
etaSeconds
-
getEtaSeconds
Rough seconds remaining, extrapolated from the rate observed so far and assuming nothing else competes for workers. Runs conservative in practice — it has measured 2–5× long when a sweep spent part of its life waiting to be retried, since that wait dilutes the observed rate. **Omitted, never zero, when it cannot be computed**: a sweep with nothing finished yet has no rate to extrapolate from, and a zero would read as \"about to finish\". Excludes queue wait entirely; `retrying` and `stalledSeconds` are where that shows up.- Returns:
- etaSeconds
-
setEtaSeconds
-
equals
Return true if this SweepProgress object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-