Package org.gbif.api.model.pipelines
Class PipelineStep
java.lang.Object
org.gbif.api.model.pipelines.PipelineStep
- All Implemented Interfaces:
Serializable
,LenientEquals<PipelineStep>
Models a step in pipelines.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Inner class to store metrics.static enum
Enum to represent the status of a step. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<PipelineStep>
Comparator that sorts pipeline steps by start date and then by finished date in ascending order.static final Comparator<PipelineStep>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMetricInfo
(PipelineStep.MetricInfo metricInfo) boolean
long
getKey()
getState()
getType()
int
hashCode()
boolean
lenientEquals
(PipelineStep other) Leniently tests if the objects are the same.setCreatedBy
(String createdBy) setFinished
(LocalDateTime finished) void
setKey
(long key) setMessage
(String message) setMetrics
(Set<PipelineStep.MetricInfo> metrics) setModified
(LocalDateTime modified) setModifiedBy
(String modifiedBy) setNumberRecords
(Long numberRecords) setPipelinesVersion
(String pipelinesVersion) setRunner
(StepRunner runner) setStarted
(LocalDateTime started) setState
(PipelineStep.Status state) toString()
-
Field Details
-
STEPS_BY_TYPE_ASC
-
STEPS_BY_FINISHED_ASC
Comparator that sorts pipeline steps by start date and then by finished date in ascending order.
-
-
Constructor Details
-
PipelineStep
public PipelineStep()
-
-
Method Details
-
getKey
-
getType
-
setType
-
getRunner
-
setRunner
-
getStarted
-
setStarted
-
getFinished
-
setFinished
-
getState
-
setState
-
getMessage
-
setMessage
-
setKey
-
getNumberRecords
-
setNumberRecords
-
getPipelinesVersion
-
setPipelinesVersion
-
getCreatedBy
-
setCreatedBy
-
getModified
-
setModified
-
getModifiedBy
-
setModifiedBy
-
getMetrics
-
setMetrics
-
addMetricInfo
-
equals
-
hashCode
-
toString
-
lenientEquals
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...
-