-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NIFI-13563: Updated Provenance Repository so that instead of returnin…
…g the single latest event for a component, we return the events from the latest invocation / session. Added system tests to verify the behavior. Also, when replaying latest event, attempt all of those events until one succeeds or all fail
- Loading branch information
Showing
24 changed files
with
425 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...t-dto/src/main/java/org/apache/nifi/web/api/dto/provenance/LatestProvenanceEventsDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package org.apache.nifi.web.api.dto.provenance; | ||
|
||
import jakarta.xml.bind.annotation.XmlType; | ||
|
||
import java.util.List; | ||
|
||
@XmlType(name = "latestProvenanceEvents") | ||
public class LatestProvenanceEventsDTO { | ||
private String componentId; | ||
private List<ProvenanceEventDTO> provenanceEvents; | ||
|
||
/** | ||
* @return the ID of the component whose latest events were fetched | ||
*/ | ||
public String getComponentId() { | ||
return componentId; | ||
} | ||
|
||
public void setComponentId(final String componentId) { | ||
this.componentId = componentId; | ||
} | ||
|
||
/** | ||
* @return the latest provenance events that were recorded for the associated component | ||
*/ | ||
public List<ProvenanceEventDTO> getProvenanceEvents() { | ||
return provenanceEvents; | ||
} | ||
|
||
public void setProvenanceEvents(final List<ProvenanceEventDTO> provenanceEvents) { | ||
this.provenanceEvents = provenanceEvents; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...client-dto/src/main/java/org/apache/nifi/web/api/entity/LatestProvenanceEventsEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.apache.nifi.web.api.entity; | ||
|
||
import jakarta.xml.bind.annotation.XmlRootElement; | ||
import org.apache.nifi.web.api.dto.provenance.LatestProvenanceEventsDTO; | ||
|
||
@XmlRootElement(name = "latestProvenanceEventsEntity") | ||
public class LatestProvenanceEventsEntity extends Entity { | ||
private LatestProvenanceEventsDTO latestProvenanceEvents; | ||
|
||
/** | ||
* @return latest provenance events | ||
*/ | ||
public LatestProvenanceEventsDTO getLatestProvenanceEvents() { | ||
return latestProvenanceEvents; | ||
} | ||
|
||
public void setLatestProvenanceEvents(LatestProvenanceEventsDTO latestProvenanceEvents) { | ||
this.latestProvenanceEvents = latestProvenanceEvents; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.