Class TaskStatusValueObject
java.lang.Object
ubic.gemma.rest.TaskStatusValueObject
Snapshot of a
SubmittedTask for the REST API.
Returned by the dispatch endpoints (with HTTP 202 + a Location header) and by
GET /tasks/{taskId}. The underlying task store is in-memory only and tasks are evicted roughly
10 minutes after completion, so GET /tasks/{taskId} returns 404 once the window elapses.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMachine-readable classification of a failed task, so a REST client can react to the failure (link to the existing experiment, correct the accession, retry a transient network error, or surface the raw detail) rather than parsing a free-text message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()Structured failure detail.Identifier of the experiment the task is operating on, when derivable from the task command.Last progress update emitted by the task.getStep()Pipeline step the task corresponds to:preprocess,pca,batchInfo,dea,deaRemove.voidsetCompletedAt(Date completedAt) voidStructured failure detail.voidsetExperimentId(Long experimentId) Identifier of the experiment the task is operating on, when derivable from the task command.voidsetMessage(String message) Last progress update emitted by the task.voidsetStartedAt(Date startedAt) voidvoidPipeline step the task corresponds to:preprocess,pca,batchInfo,dea,deaRemove.voidsetSubmittedAt(Date submittedAt) void
-
Constructor Details
-
TaskStatusValueObject
public TaskStatusValueObject() -
TaskStatusValueObject
-
-
Method Details
-
getTaskId
-
getExperimentId
Identifier of the experiment the task is operating on, when derivable from the task command. -
getStep
Pipeline step the task corresponds to:preprocess,pca,batchInfo,dea,deaRemove.nullfor tasks whose command class isn't a known pipeline command. -
getStatus
-
getSubmittedAt
-
getStartedAt
-
getCompletedAt
-
getMessage
Last progress update emitted by the task. Empty string when nothing is available. -
getError
Structured failure detail. Non-nullexactly whenstatusisfailed;nullotherwise. Lets a client distinguish (and act on) the many ways an import/pipeline task can go wrong — a network hiccup, an accession that already exists, an invalid accession, a super-series gate, etc. — instead of seeing an opaquefailed. -
setTaskId
-
setExperimentId
Identifier of the experiment the task is operating on, when derivable from the task command. -
setStep
Pipeline step the task corresponds to:preprocess,pca,batchInfo,dea,deaRemove.nullfor tasks whose command class isn't a known pipeline command. -
setStatus
-
setSubmittedAt
-
setStartedAt
-
setCompletedAt
-
setMessage
Last progress update emitted by the task. Empty string when nothing is available. -
setError
Structured failure detail. Non-nullexactly whenstatusisfailed;nullotherwise. Lets a client distinguish (and act on) the many ways an import/pipeline task can go wrong — a network hiccup, an accession that already exists, an invalid accession, a super-series gate, etc. — instead of seeing an opaquefailed.
-