Package org.apache.nifi.provenance
Class MockProvenanceRepository
java.lang.Object
org.apache.nifi.provenance.MockProvenanceRepository
- All Implemented Interfaces:
ProvenanceEventRepository
,ProvenanceRepository
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtomicLong
private final List
<ProvenanceEventRecord> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
getContainerCapacity
(String containerName) getContainerFileStoreName
(String containerName) long
getContainerUsableSpace
(String containerName) getEvent
(long id) getEvents
(long firstRecordId, int maxRecords) getLatestCachedEvent
(String componentId) void
initialize
(EventReporter eventReporter, Authorizer authorizer, ProvenanceAuthorizableFactory resourceFactory, IdentifierLookup idLookup) void
void
registerEvents
(Iterable<ProvenanceEventRecord> events) retrieveLineageSubmission
(String lineageIdentifier, NiFiUser user) retrieveQuerySubmission
(String queryIdentifier, NiFiUser user) submitExpandChildren
(long eventId, NiFiUser user) submitExpandParents
(long eventId, NiFiUser user) submitLineageComputation
(long eventId, NiFiUser user) submitLineageComputation
(String flowFileUuid, NiFiUser user) submitQuery
(Query query, NiFiUser user)
-
Field Details
-
records
-
idGenerator
-
-
Constructor Details
-
MockProvenanceRepository
public MockProvenanceRepository()
-
-
Method Details
-
registerEvents
- Specified by:
registerEvents
in interfaceProvenanceEventRepository
-
registerEvent
- Specified by:
registerEvent
in interfaceProvenanceEventRepository
-
initialize
public void initialize(EventReporter eventReporter, Authorizer authorizer, ProvenanceAuthorizableFactory resourceFactory, IdentifierLookup idLookup) throws IOException - Specified by:
initialize
in interfaceProvenanceRepository
- Throws:
IOException
-
getEvents
- Specified by:
getEvents
in interfaceProvenanceEventRepository
- Throws:
IOException
-
getEvents
public List<ProvenanceEventRecord> getEvents(long firstRecordId, int maxRecords, NiFiUser user) throws IOException - Specified by:
getEvents
in interfaceProvenanceRepository
- Throws:
IOException
-
getMaxEventId
- Specified by:
getMaxEventId
in interfaceProvenanceEventRepository
-
getEvent
- Specified by:
getEvent
in interfaceProvenanceEventRepository
- Throws:
IOException
-
submitQuery
- Specified by:
submitQuery
in interfaceProvenanceRepository
-
getLatestCachedEvent
- Specified by:
getLatestCachedEvent
in interfaceProvenanceRepository
- Throws:
IOException
-
retrieveQuerySubmission
- Specified by:
retrieveQuerySubmission
in interfaceProvenanceRepository
-
submitLineageComputation
- Specified by:
submitLineageComputation
in interfaceProvenanceRepository
-
submitLineageComputation
- Specified by:
submitLineageComputation
in interfaceProvenanceRepository
-
retrieveLineageSubmission
- Specified by:
retrieveLineageSubmission
in interfaceProvenanceRepository
-
getEvent
- Specified by:
getEvent
in interfaceProvenanceRepository
- Throws:
IOException
-
submitExpandParents
- Specified by:
submitExpandParents
in interfaceProvenanceRepository
-
submitExpandChildren
- Specified by:
submitExpandChildren
in interfaceProvenanceRepository
-
close
- Specified by:
close
in interfaceProvenanceEventRepository
- Throws:
IOException
-
getSearchableFields
- Specified by:
getSearchableFields
in interfaceProvenanceRepository
-
getSearchableAttributes
- Specified by:
getSearchableAttributes
in interfaceProvenanceRepository
-
eventBuilder
- Specified by:
eventBuilder
in interfaceProvenanceEventRepository
-
getProvenanceEventRepository
- Specified by:
getProvenanceEventRepository
in interfaceProvenanceRepository
-
getContainerCapacity
- Specified by:
getContainerCapacity
in interfaceProvenanceRepository
- Throws:
IOException
-
getContainerFileStoreName
- Specified by:
getContainerFileStoreName
in interfaceProvenanceRepository
-
getContainerNames
- Specified by:
getContainerNames
in interfaceProvenanceRepository
-
getContainerUsableSpace
- Specified by:
getContainerUsableSpace
in interfaceProvenanceRepository
- Throws:
IOException
-