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_ASCstatic Comparator<PipelineProcess>PIPELINE_PROCESS_BY_LATEST_EXEUCTION_ASCComparator that sorts the pipeline processes by the created date of the latest execution.static Comparator<PipelineProcess>PIPELINE_PROCESS_BY_LATEST_STEP_RUNNING_ASCComparator 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 PipelineProcessaddExecution(PipelineExecution execution)booleanequals(Object o)intgetAttempt()LocalDateTimegetCreated()StringgetCreatedBy()UUIDgetDatasetKey()StringgetDatasetTitle()Set<PipelineExecution>getExecutions()longgetKey()inthashCode()PipelineProcesssetAttempt(int attempt)PipelineProcesssetCreated(LocalDateTime created)PipelineProcesssetCreatedBy(String createdBy)PipelineProcesssetDatasetKey(UUID datasetKey)voidsetDatasetTitle(String datasetTitle)voidsetExecutions(Set<PipelineExecution> executions)StringtoString()
-
-
-
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)
-
-