Class StandardProvenanceReporter
java.lang.Object
org.apache.nifi.controller.repository.StandardProvenanceReporter
- All Implemented Interfaces:
InternalProvenanceReporter,ProvenanceReporter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate longprivate longprivate final ProvenanceEventEnricherprivate final Set<ProvenanceEventRecord> private intprivate intprivate intprivate final org.slf4j.Loggerprivate final Stringprivate final Stringprivate final ProvenanceEventRepository -
Constructor Summary
ConstructorsConstructorDescriptionStandardProvenanceReporter(Predicate<FlowFile> flowfileKnownCheck, String processorId, String processorType, ProvenanceEventRepository repository, ProvenanceEventEnricher enricher) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild(FlowFile flowFile, ProvenanceEventType eventType) voidclear()voidvoidvoidvoidvoidvoidvoidvoidvoidfork(FlowFile parent, Collection<FlowFile> children) voidfork(FlowFile parent, Collection<FlowFile> children, long forkDuration) voidfork(FlowFile parent, Collection<FlowFile> children, String details) voidfork(FlowFile parent, Collection<FlowFile> children, String details, long forkDuration) generateDropEvent(FlowFile flowFile, String details) generateJoinEvent(Collection<FlowFile> parents, FlowFile child) Generates a Fork event for the given child and parents but does not register the event.longlonglongintintintvoidinvokeRemoteProcess(FlowFile flowFile, String transitUri) voidinvokeRemoteProcess(FlowFile flowFile, String transitUri, String details) voidjoin(Collection<FlowFile> parents, FlowFile child) voidjoin(Collection<FlowFile> parents, FlowFile child, long joinDuration) voidjoin(Collection<FlowFile> parents, FlowFile child, String details) voidjoin(Collection<FlowFile> parents, FlowFile child, String details, long joinDuration) voidmigrate(InternalProvenanceReporter newOwner, Collection<String> flowFileIds) voidmodifyAttributes(FlowFile flowFile) voidmodifyAttributes(FlowFile flowFile, String details) voidmodifyContent(FlowFile flowFile) voidmodifyContent(FlowFile flowFile, long processingMillis) voidmodifyContent(FlowFile flowFile, String details) voidmodifyContent(FlowFile flowFile, String details, long processingMillis) voidvoidvoidvoidvoidreceive(FlowFile flowFile, String transitUri, String sourceSystemFlowFileIdentifier, String details, long transmissionMillis) voidreceiveMigration(Set<ProvenanceEventRecord> events) voidremove(ProvenanceEventRecord event) Removes the given event from the reportervoidvoidvoidroute(FlowFile flowFile, org.apache.nifi.processor.Relationship relationship, long processingDuration) voidvoidroute(FlowFile flowFile, org.apache.nifi.processor.Relationship relationship, String details, long processingDuration) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidupload(FlowFile flowFile, long size, String transitUri, String details, long transmissionMillis, boolean force) private voidverifyFlowFileKnown(FlowFile flowFile)
-
Field Details
-
logger
private final org.slf4j.Logger logger -
processorId
-
processorType
-
events
-
repository
-
eventEnricher
-
flowfileKnownCheck
-
bytesSent
private long bytesSent -
bytesReceived
private long bytesReceived -
flowFilesSent
private int flowFilesSent -
flowFilesReceived
private int flowFilesReceived -
flowFilesFetched
private int flowFilesFetched -
bytesFetched
private long bytesFetched
-
-
Constructor Details
-
StandardProvenanceReporter
public StandardProvenanceReporter(Predicate<FlowFile> flowfileKnownCheck, String processorId, String processorType, ProvenanceEventRepository repository, ProvenanceEventEnricher enricher)
-
-
Method Details
-
getEvents
- Specified by:
getEventsin interfaceInternalProvenanceReporter
-
remove
Removes the given event from the reporter- Specified by:
removein interfaceInternalProvenanceReporter- Parameters:
event- event
-
removeEventsForFlowFile
- Specified by:
removeEventsForFlowFilein interfaceInternalProvenanceReporter
-
clear
public void clear()- Specified by:
clearin interfaceInternalProvenanceReporter
-
migrate
- Specified by:
migratein interfaceInternalProvenanceReporter
-
receiveMigration
- Specified by:
receiveMigrationin interfaceInternalProvenanceReporter
-
generateJoinEvent
Generates a Fork event for the given child and parents but does not register the event. This is useful so that a ProcessSession has the ability to de-dupe events, since one or more events may be created by the session itself, as well as by the Processor- Specified by:
generateJoinEventin interfaceInternalProvenanceReporter- Parameters:
parents- parentschild- child- Returns:
- record
-
generateDropEvent
- Specified by:
generateDropEventin interfaceInternalProvenanceReporter
-
verifyFlowFileKnown
-
receive
- Specified by:
receivein interfaceProvenanceReporter
-
receive
- Specified by:
receivein interfaceProvenanceReporter
-
receive
- Specified by:
receivein interfaceProvenanceReporter
-
receive
- Specified by:
receivein interfaceProvenanceReporter
-
receive
public void receive(FlowFile flowFile, String transitUri, String sourceSystemFlowFileIdentifier, String details, long transmissionMillis) - Specified by:
receivein interfaceProvenanceReporter
-
fetch
- Specified by:
fetchin interfaceProvenanceReporter
-
fetch
- Specified by:
fetchin interfaceProvenanceReporter
-
fetch
- Specified by:
fetchin interfaceProvenanceReporter
-
send
- Specified by:
sendin interfaceProvenanceReporter
-
send
- Specified by:
sendin interfaceProvenanceReporter
-
send
- Specified by:
sendin interfaceProvenanceReporter
-
send
- Specified by:
sendin interfaceProvenanceReporter
-
send
- Specified by:
sendin interfaceProvenanceReporter
-
send
- Specified by:
sendin interfaceProvenanceReporter
-
send
- Specified by:
sendin interfaceProvenanceReporter
-
send
public void send(FlowFile flowFile, String transitUri, String details, long transmissionMillis, boolean force) - Specified by:
sendin interfaceProvenanceReporter
-
upload
- Specified by:
uploadin interfaceProvenanceReporter
-
upload
public void upload(FlowFile flowFile, long size, String transitUri, String details, long transmissionMillis, boolean force) - Specified by:
uploadin interfaceProvenanceReporter
-
invokeRemoteProcess
- Specified by:
invokeRemoteProcessin interfaceProvenanceReporter
-
invokeRemoteProcess
- Specified by:
invokeRemoteProcessin interfaceProvenanceReporter
-
associate
public void associate(FlowFile flowFile, String alternateIdentifierNamespace, String alternateIdentifier) - Specified by:
associatein interfaceProvenanceReporter
-
drop
- Specified by:
dropin interfaceInternalProvenanceReporter
-
expire
- Specified by:
expirein interfaceInternalProvenanceReporter
-
fork
- Specified by:
forkin interfaceProvenanceReporter
-
fork
- Specified by:
forkin interfaceProvenanceReporter
-
fork
- Specified by:
forkin interfaceProvenanceReporter
-
fork
- Specified by:
forkin interfaceProvenanceReporter
-
join
- Specified by:
joinin interfaceProvenanceReporter
-
join
- Specified by:
joinin interfaceProvenanceReporter
-
join
- Specified by:
joinin interfaceProvenanceReporter
-
join
- Specified by:
joinin interfaceProvenanceReporter
-
clone
- Specified by:
clonein interfaceProvenanceReporter
-
clone
- Specified by:
clonein interfaceInternalProvenanceReporter
-
modifyContent
- Specified by:
modifyContentin interfaceProvenanceReporter
-
modifyContent
- Specified by:
modifyContentin interfaceProvenanceReporter
-
modifyContent
- Specified by:
modifyContentin interfaceProvenanceReporter
-
modifyContent
- Specified by:
modifyContentin interfaceProvenanceReporter
-
modifyAttributes
- Specified by:
modifyAttributesin interfaceProvenanceReporter
-
modifyAttributes
- Specified by:
modifyAttributesin interfaceProvenanceReporter
-
route
- Specified by:
routein interfaceProvenanceReporter
-
route
public void route(FlowFile flowFile, org.apache.nifi.processor.Relationship relationship, long processingDuration) - Specified by:
routein interfaceProvenanceReporter
-
route
public void route(FlowFile flowFile, org.apache.nifi.processor.Relationship relationship, String details) - Specified by:
routein interfaceProvenanceReporter
-
route
public void route(FlowFile flowFile, org.apache.nifi.processor.Relationship relationship, String details, long processingDuration) - Specified by:
routein interfaceProvenanceReporter
-
create
- Specified by:
createin interfaceProvenanceReporter
-
create
- Specified by:
createin interfaceProvenanceReporter
-
build
- Specified by:
buildin interfaceInternalProvenanceReporter
-
getFlowFilesSent
public int getFlowFilesSent()- Specified by:
getFlowFilesSentin interfaceProvenanceReporter
-
getBytesSent
public long getBytesSent()- Specified by:
getBytesSentin interfaceProvenanceReporter
-
getFlowFilesReceived
public int getFlowFilesReceived()- Specified by:
getFlowFilesReceivedin interfaceProvenanceReporter
-
getBytesReceived
public long getBytesReceived()- Specified by:
getBytesReceivedin interfaceProvenanceReporter
-
getFlowFilesFetched
public int getFlowFilesFetched()- Specified by:
getFlowFilesFetchedin interfaceProvenanceReporter
-
getBytesFetched
public long getBytesFetched()- Specified by:
getBytesFetchedin interfaceProvenanceReporter
-