Package ubic.gemma.rest
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIdentifier of the experiment the task is operating on, when derivable from the task command.Last progress update emitted by the task.Lower-casedSubmittedTask.Statusvalue:queued,running,completed,failed,cancelling,unknown.getStep()Pipeline step the task corresponds to:preprocess,pca,batchInfo,dea,deaRemove.voidsetCompletedAt(Date completedAt) 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) voidLower-casedSubmittedTask.Statusvalue:queued,running,completed,failed,cancelling,unknown.voidPipeline step the task corresponds to:preprocess,pca,batchInfo,dea,deaRemove.voidsetSubmittedAt(Date submittedAt) void
-
Constructor Details
-
TaskStatusValueObject
public TaskStatusValueObject() -
TaskStatusValueObject
public TaskStatusValueObject(ubic.gemma.core.job.SubmittedTask task)
-
-
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
Lower-casedSubmittedTask.Statusvalue:queued,running,completed,failed,cancelling,unknown. -
getSubmittedAt
-
getStartedAt
-
getCompletedAt
-
getMessage
Last progress update emitted by the task. Empty string when nothing is available. -
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
Lower-casedSubmittedTask.Statusvalue:queued,running,completed,failed,cancelling,unknown. -
setSubmittedAt
-
setStartedAt
-
setCompletedAt
-
setMessage
Last progress update emitted by the task. Empty string when nothing is available.
-