Package org.gbif.api.model.pipelines
Class PipelineStep
- java.lang.Object
-
- org.gbif.api.model.pipelines.PipelineStep
-
- All Implemented Interfaces:
Serializable
,LenientEquals<PipelineStep>
public class PipelineStep extends Object implements LenientEquals<PipelineStep>, Serializable
Models a step in pipelines.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PipelineStep.MetricInfo
Inner class to store metrics.static class
PipelineStep.Status
Enum to represent the status of a step.
-
Field Summary
Fields Modifier and Type Field Description static Comparator<PipelineStep>
STEPS_BY_FINISHED_ASC
Comparator that sorts pipeline steps by start date and then by finished date in ascending order.static Comparator<PipelineStep>
STEPS_BY_TYPE_ASC
-
Constructor Summary
Constructors Constructor Description PipelineStep()
-
Method Summary
-
-
-
Field Detail
-
STEPS_BY_TYPE_ASC
public static final Comparator<PipelineStep> STEPS_BY_TYPE_ASC
-
STEPS_BY_FINISHED_ASC
public static final Comparator<PipelineStep> STEPS_BY_FINISHED_ASC
Comparator that sorts pipeline steps by start date and then by finished date in ascending order.
-
-
Constructor Detail
-
PipelineStep
public PipelineStep()
-
-
Method Detail
-
getKey
public long getKey()
-
setType
public PipelineStep setType(StepType type)
-
getRunner
public StepRunner getRunner()
-
setRunner
public PipelineStep setRunner(StepRunner runner)
-
getStarted
public LocalDateTime getStarted()
-
setStarted
public PipelineStep setStarted(LocalDateTime started)
-
getFinished
public LocalDateTime getFinished()
-
setFinished
public PipelineStep setFinished(LocalDateTime finished)
-
getState
public PipelineStep.Status getState()
-
setState
public PipelineStep setState(PipelineStep.Status state)
-
getMessage
public String getMessage()
-
setMessage
public PipelineStep setMessage(String message)
-
setKey
public void setKey(long key)
-
getNumberRecords
public Long getNumberRecords()
-
setNumberRecords
public PipelineStep setNumberRecords(Long numberRecords)
-
getPipelinesVersion
public String getPipelinesVersion()
-
setPipelinesVersion
public PipelineStep setPipelinesVersion(String pipelinesVersion)
-
getCreatedBy
public String getCreatedBy()
-
setCreatedBy
public PipelineStep setCreatedBy(String createdBy)
-
getModified
public LocalDateTime getModified()
-
setModified
public PipelineStep setModified(LocalDateTime modified)
-
getModifiedBy
public String getModifiedBy()
-
setModifiedBy
public PipelineStep setModifiedBy(String modifiedBy)
-
getMetrics
public Set<PipelineStep.MetricInfo> getMetrics()
-
setMetrics
public PipelineStep setMetrics(Set<PipelineStep.MetricInfo> metrics)
-
addMetricInfo
public PipelineStep addMetricInfo(PipelineStep.MetricInfo metricInfo)
-
lenientEquals
public boolean lenientEquals(PipelineStep other)
Description copied from interface:LenientEquals
Leniently tests if the objects are the same. Implementors should declare what this means in practice.- Specified by:
lenientEquals
in interfaceLenientEquals<PipelineStep>
- Parameters:
other
- To compare against- Returns:
- true if...
-
-