Package com.qtsurfer.api.client.model
Class JobState
java.lang.Object
com.qtsurfer.api.client.model.JobState
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.14.0")
public class JobState
extends Object
Information about a single job
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendTime(OffsetDateTime endTime) booleanReturn true if this JobState object is equal to o.The amount of data processed so farIdentifier for the job's execution context.Timestamp for when the preparation finishedgetSize()Total size of the data being preparedTimestamp for when the preparation startedCurrent status of the job.Detailed status information, if availableinthashCode()voidsetCompleted(Integer completed) voidsetContextId(String contextId) voidsetEndTime(OffsetDateTime endTime) voidvoidsetStartTime(OffsetDateTime startTime) voidsetStatus(JobState.StatusEnum status) voidsetStatusDetail(String statusDetail) startTime(OffsetDateTime startTime) status(JobState.StatusEnum status) statusDetail(String statusDetail) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_CONTEXT_ID
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_STATUS_DETAIL
- See Also:
-
JSON_PROPERTY_SIZE
- See Also:
-
JSON_PROPERTY_COMPLETED
- See Also:
-
JSON_PROPERTY_START_TIME
- See Also:
-
JSON_PROPERTY_END_TIME
- See Also:
-
-
Constructor Details
-
JobState
public JobState()
-
-
Method Details
-
contextId
-
getContextId
Identifier for the job's execution context. Its current shape is a colon-delimited string encoding the data source type, an internal user id, the exchange, the job id, and the instrument — but that structure is not a committed contract and may change without notice. Treat it as an opaque token: store and pass it back, don't parse it.- Returns:
- contextId
-
setContextId
-
status
-
getStatus
Current status of the job. Treat `Completed | Aborted | Failed` as terminal; `New | Started` mean keep polling. A single-instrument prepare is always terminal (`Completed`) — decide from `PrepareJobState.coverageRatio` (or `dataFrom`/`dataTo` against an `rt` dataset, which has no ratio), not by polling.- Returns:
- status
-
setStatus
-
statusDetail
-
getStatusDetail
Detailed status information, if available- Returns:
- statusDetail
-
setStatusDetail
-
size
-
getSize
Total size of the data being prepared- Returns:
- size
-
setSize
-
completed
-
getCompleted
The amount of data processed so far- Returns:
- completed
-
setCompleted
-
startTime
-
getStartTime
Timestamp for when the preparation started- Returns:
- startTime
-
setStartTime
-
endTime
-
getEndTime
Timestamp for when the preparation finished- Returns:
- endTime
-
setEndTime
-
equals
Return true if this JobState 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
-