Class PipelineJobValueObject
java.lang.Object
ubic.gemma.model.pipeline.PipelineJobValueObject
- All Implemented Interfaces:
Serializable
Value object projection of
PipelineJob for the REST surface.
Why this exists
PipelineJob.getExperiment() is a lazy @ManyToOne to the
ExpressionExperiment entity. Returning the entity published that whole object graph and
risked serializing it; PipelineJobBatchValueObject has the detail. The experiment is
carried here as an id, which a caller resolves through GET /datasets/{id} when it needs
more than that.
The event log is not embedded either. It is unbounded and paged separately at
GET /admin/pipeline/batches/{batchId}/jobs/{jobId}/events.
- Author:
- phase3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanstatic PipelineJobValueObjectfrom(PipelineJob job) Project a job.getId()getState()inthashCode()voidsetBatchId(Long batchId) voidsetErrorMessage(String errorMessage) voidsetExperimentId(Long experimentId) voidsetFinishedAt(Date finishedAt) voidvoidsetLastEventAt(Date lastEventAt) voidsetLastEventKind(String lastEventKind) voidsetLastProgressJson(String lastProgressJson) voidsetSchedulerHandle(String schedulerHandle) voidsetSchedulerKind(SchedulerKind schedulerKind) voidsetStartedAt(Date startedAt) voidvoidsetSubmittedAt(Date submittedAt) toString()
-
Constructor Details
-
PipelineJobValueObject
public PipelineJobValueObject()
-
-
Method Details
-
from
Project a job.Reads the batch and experiment identifiers off their proxies rather than the entities, which does not initialize either — the same thing
PipelineJob.equals(Object)relies on. That is what keeps this callable for a job loaded without its associations fetched. -
getId
-
getBatchId
-
getExperimentId
-
getState
-
getSchedulerKind
-
getSchedulerHandle
-
getSubmittedAt
-
getStartedAt
-
getFinishedAt
-
getLastEventAt
-
getLastEventKind
-
getLastProgressJson
-
getErrorMessage
-
setId
-
setBatchId
-
setExperimentId
-
setState
-
setSchedulerKind
-
setSchedulerHandle
-
setSubmittedAt
-
setStartedAt
-
setFinishedAt
-
setLastEventAt
-
setLastEventKind
-
setLastProgressJson
-
setErrorMessage
-
equals
-
canEqual
-
hashCode
-
toString
-