Class OpenLineageEgeriaRunRetryRunFacet
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageRunFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageEgeriaRunRetryRunFacet
This class represents Egeria's custom egeria_runRetry run facet. A run includes it to say that it is another
attempt at the work of an earlier run - a retry after a failure, a restart from a checkpoint or a restatement
of results - and, optionally, which datasets written by earlier runs it supersedes. Egeria links the earlier
run to this run with a ControlFlow relationship (guard RETRY) when runs are catalogued, and classifies the
superseded datasets as Superseded when this run completes. Any OpenLineage producer can add it to its run events.
It follows the facet schema at "https://egeria-project.org/openlineage/facets/1-0-0/EgeriaRunRetryRunFacet.json#/$defs/EgeriaRunRetryRunFacet".
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the number of this attempt (the first attempt is 1, so the first retry is 2).Return the name of the job of the earlier run, when it is not the job of this run.Return the namespace of the job of the earlier run, when it is not the job of this run.Return the run id of the earlier run that this run is another attempt at.Return the reason for the new attempt.Return the datasets, written by earlier runs, that are superseded when this run completes.inthashCode()Return hash code based on properties.voidsetAttempt(Integer attempt) Set up the number of this attempt (the first attempt is 1, so the first retry is 2).voidsetPriorJobName(String priorJobName) Set up the name of the job of the earlier run, when it is not the job of this run.voidsetPriorJobNamespace(String priorJobNamespace) Set up the namespace of the job of the earlier run, when it is not the job of this run.voidsetPriorRunId(String priorRunId) Set up the run id of the earlier run that this run is another attempt at.voidSet up the reason for the new attempt.voidsetSupersededDatasets(List<OpenLineageEgeriaRunRetryRunFacetSupersededDataSet> supersededDatasets) Set up the datasets, written by earlier runs, that are superseded when this run completes.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
get_producer, get_schemaURL, getAdditionalProperties, set_producer, set_schemaURL, setAdditionalProperties, setAdditionalProperty
-
Field Details
-
FACET_NAME
Key of the facet in the run's facets.- See Also:
-
SCHEMA_URL
Location of the facet's schema.- See Also:
-
-
Constructor Details
-
OpenLineageEgeriaRunRetryRunFacet
public OpenLineageEgeriaRunRetryRunFacet()Default constructor
-
-
Method Details
-
getPriorRunId
Return the run id of the earlier run that this run is another attempt at.- Returns:
- string
-
setPriorRunId
Set up the run id of the earlier run that this run is another attempt at.- Parameters:
priorRunId- string
-
getPriorJobNamespace
Return the namespace of the job of the earlier run, when it is not the job of this run.- Returns:
- string
-
setPriorJobNamespace
Set up the namespace of the job of the earlier run, when it is not the job of this run.- Parameters:
priorJobNamespace- string
-
getPriorJobName
Return the name of the job of the earlier run, when it is not the job of this run.- Returns:
- string
-
setPriorJobName
Set up the name of the job of the earlier run, when it is not the job of this run.- Parameters:
priorJobName- string
-
getAttempt
Return the number of this attempt (the first attempt is 1, so the first retry is 2).- Returns:
- integer
-
setAttempt
Set up the number of this attempt (the first attempt is 1, so the first retry is 2).- Parameters:
attempt- integer
-
getReason
Return the reason for the new attempt.- Returns:
- string
-
setReason
Set up the reason for the new attempt.- Parameters:
reason- string
-
getSupersededDatasets
Return the datasets, written by earlier runs, that are superseded when this run completes.- Returns:
- list of datasets
-
setSupersededDatasets
public void setSupersededDatasets(List<OpenLineageEgeriaRunRetryRunFacetSupersededDataSet> supersededDatasets) Set up the datasets, written by earlier runs, that are superseded when this run completes.- Parameters:
supersededDatasets- list of datasets
-
toString
Standard toString method.- Overrides:
toStringin classOpenLineageRunFacet- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classOpenLineageFacet- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classOpenLineageFacet- Returns:
- int
-