Package org.gbif.api.model.pipelines
Class PipelineProcess
- java.lang.Object
-
- org.gbif.api.model.pipelines.PipelineProcess
-
- All Implemented Interfaces:
Serializable
public class PipelineProcess extends Object implements Serializable
Models a pipeline process for a specific dataset and attempt.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<PipelineExecution>
PIPELINE_EXECUTION_BY_CREATED_ASC
static Comparator<PipelineProcess>
PIPELINE_PROCESS_BY_LATEST_EXEUCTION_ASC
Comparator that sorts the pipeline processes by the created date of the latest execution.static Comparator<PipelineProcess>
PIPELINE_PROCESS_BY_LATEST_STEP_RUNNING_ASC
Comparator that sorts pipeline processes by the start date of their latest step in ascending order.
-
Constructor Summary
Constructors Constructor Description PipelineProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PipelineProcess
addExecution(PipelineExecution execution)
boolean
equals(Object o)
int
getAttempt()
LocalDateTime
getCreated()
String
getCreatedBy()
UUID
getDatasetKey()
String
getDatasetTitle()
Set<PipelineExecution>
getExecutions()
long
getKey()
int
hashCode()
PipelineProcess
setAttempt(int attempt)
PipelineProcess
setCreated(LocalDateTime created)
PipelineProcess
setCreatedBy(String createdBy)
PipelineProcess
setDatasetKey(UUID datasetKey)
void
setDatasetTitle(String datasetTitle)
void
setExecutions(Set<PipelineExecution> executions)
String
toString()
-
-
-
Field Detail
-
PIPELINE_EXECUTION_BY_CREATED_ASC
public static final Comparator<PipelineExecution> PIPELINE_EXECUTION_BY_CREATED_ASC
-
PIPELINE_PROCESS_BY_LATEST_EXEUCTION_ASC
public static final Comparator<PipelineProcess> PIPELINE_PROCESS_BY_LATEST_EXEUCTION_ASC
Comparator that sorts the pipeline processes by the created date of the latest execution.
-
PIPELINE_PROCESS_BY_LATEST_STEP_RUNNING_ASC
public static final Comparator<PipelineProcess> PIPELINE_PROCESS_BY_LATEST_STEP_RUNNING_ASC
Comparator that sorts pipeline processes by the start date of their latest step in ascending order. The steps that are running have preference, and we take into account only the steps of the latest execution.
-
-
Constructor Detail
-
PipelineProcess
public PipelineProcess()
-
-
Method Detail
-
getKey
public long getKey()
-
getDatasetKey
public UUID getDatasetKey()
-
setDatasetKey
public PipelineProcess setDatasetKey(UUID datasetKey)
-
getDatasetTitle
public String getDatasetTitle()
-
setDatasetTitle
public void setDatasetTitle(String datasetTitle)
-
getAttempt
public int getAttempt()
-
setAttempt
public PipelineProcess setAttempt(int attempt)
-
getCreated
public LocalDateTime getCreated()
-
setCreated
public PipelineProcess setCreated(LocalDateTime created)
-
getCreatedBy
public String getCreatedBy()
-
setCreatedBy
public PipelineProcess setCreatedBy(String createdBy)
-
getExecutions
public Set<PipelineExecution> getExecutions()
-
setExecutions
public void setExecutions(Set<PipelineExecution> executions)
-
addExecution
public PipelineProcess addExecution(PipelineExecution execution)
-
-