Package org.apache.nifi.util
Class MockProvenanceReporter
java.lang.Object
org.apache.nifi.util.MockProvenanceReporter
- All Implemented Interfaces:
ProvenanceReporter
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Set
<ProvenanceEventRecord> private static final org.slf4j.Logger
private final String
private final String
private final MockProcessSession
private final SharedSessionState
-
Constructor Summary
ConstructorDescriptionMockProvenanceReporter
(MockProcessSession session, SharedSessionState sharedState, String processorId, String processorType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
(package private) ProvenanceEventBuilder
build
(FlowFile flowFile, ProvenanceEventType eventType) (package private) void
clear()
void
void
void
(package private) ProvenanceEventRecord
void
void
void
void
fork
(FlowFile parent, Collection<FlowFile> children) void
fork
(FlowFile parent, Collection<FlowFile> children, long forkDuration) void
fork
(FlowFile parent, Collection<FlowFile> children, String details) void
fork
(FlowFile parent, Collection<FlowFile> children, String details, long forkDuration) long
long
long
(package private) Set
<ProvenanceEventRecord> int
int
int
void
invokeRemoteProcess
(FlowFile flowFile, String transitUri) void
invokeRemoteProcess
(FlowFile flowFile, String transitUri, String details) void
join
(Collection<FlowFile> parents, FlowFile child) void
join
(Collection<FlowFile> parents, FlowFile child, long joinDuration) void
join
(Collection<FlowFile> parents, FlowFile child, String details) void
join
(Collection<FlowFile> parents, FlowFile child, String details, long joinDuration) (package private) void
migrate
(MockProvenanceReporter newOwner, Set<String> flowFileIds) void
modifyAttributes
(FlowFile flowFile) void
modifyAttributes
(FlowFile flowFile, String details) void
modifyContent
(FlowFile flowFile) void
modifyContent
(FlowFile flowFile, long processingMillis) void
modifyContent
(FlowFile flowFile, String details) void
modifyContent
(FlowFile flowFile, String details, long processingMillis) void
void
void
void
void
receive
(FlowFile flowFile, String transitUri, String sourceSystemFlowFileIdentifier, String details, long transmissionMillis) void
route
(FlowFile flowFile, Relationship relationship) void
route
(FlowFile flowFile, Relationship relationship, long processingDuration) void
route
(FlowFile flowFile, Relationship relationship, String details) void
route
(FlowFile flowFile, Relationship relationship, String details, long processingDuration) void
void
void
void
void
void
void
void
void
void
upload
(FlowFile flowFile, long size, String transitUri, String details, long transmissionMillis, boolean force) private void
verifyFlowFileKnown
(FlowFile flowFile)
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
session
-
processorId
-
processorType
-
events
-
-
Constructor Details
-
Method Details
-
verifyFlowFileKnown
-
getEvents
Set<ProvenanceEventRecord> getEvents() -
clear
void clear() -
migrate
-
receive
- Specified by:
receive
in interfaceProvenanceReporter
-
receive
- Specified by:
receive
in interfaceProvenanceReporter
-
receive
- Specified by:
receive
in interfaceProvenanceReporter
-
receive
- Specified by:
receive
in interfaceProvenanceReporter
-
receive
public void receive(FlowFile flowFile, String transitUri, String sourceSystemFlowFileIdentifier, String details, long transmissionMillis) - Specified by:
receive
in interfaceProvenanceReporter
-
fetch
- Specified by:
fetch
in interfaceProvenanceReporter
-
fetch
- Specified by:
fetch
in interfaceProvenanceReporter
-
fetch
- Specified by:
fetch
in interfaceProvenanceReporter
-
send
- Specified by:
send
in interfaceProvenanceReporter
-
send
- Specified by:
send
in interfaceProvenanceReporter
-
send
- Specified by:
send
in interfaceProvenanceReporter
-
send
- Specified by:
send
in interfaceProvenanceReporter
-
send
- Specified by:
send
in interfaceProvenanceReporter
-
send
- Specified by:
send
in interfaceProvenanceReporter
-
send
public void send(FlowFile flowFile, String transitUri, String details, long transmissionMillis, boolean force) - Specified by:
send
in interfaceProvenanceReporter
-
upload
- Specified by:
upload
in interfaceProvenanceReporter
-
upload
public void upload(FlowFile flowFile, long size, String transitUri, String details, long transmissionMillis, boolean force) - Specified by:
upload
in interfaceProvenanceReporter
-
send
- Specified by:
send
in interfaceProvenanceReporter
-
invokeRemoteProcess
- Specified by:
invokeRemoteProcess
in interfaceProvenanceReporter
-
invokeRemoteProcess
- Specified by:
invokeRemoteProcess
in interfaceProvenanceReporter
-
associate
public void associate(FlowFile flowFile, String alternateIdentifierNamespace, String alternateIdentifier) - Specified by:
associate
in interfaceProvenanceReporter
-
drop
-
fork
- Specified by:
fork
in interfaceProvenanceReporter
-
fork
- Specified by:
fork
in interfaceProvenanceReporter
-
fork
- Specified by:
fork
in interfaceProvenanceReporter
-
fork
- Specified by:
fork
in interfaceProvenanceReporter
-
join
- Specified by:
join
in interfaceProvenanceReporter
-
join
- Specified by:
join
in interfaceProvenanceReporter
-
join
- Specified by:
join
in interfaceProvenanceReporter
-
join
- Specified by:
join
in interfaceProvenanceReporter
-
clone
- Specified by:
clone
in interfaceProvenanceReporter
-
modifyContent
- Specified by:
modifyContent
in interfaceProvenanceReporter
-
modifyContent
- Specified by:
modifyContent
in interfaceProvenanceReporter
-
modifyContent
- Specified by:
modifyContent
in interfaceProvenanceReporter
-
modifyContent
- Specified by:
modifyContent
in interfaceProvenanceReporter
-
modifyAttributes
- Specified by:
modifyAttributes
in interfaceProvenanceReporter
-
modifyAttributes
- Specified by:
modifyAttributes
in interfaceProvenanceReporter
-
route
- Specified by:
route
in interfaceProvenanceReporter
-
route
- Specified by:
route
in interfaceProvenanceReporter
-
route
- Specified by:
route
in interfaceProvenanceReporter
-
route
public void route(FlowFile flowFile, Relationship relationship, String details, long processingDuration) - Specified by:
route
in interfaceProvenanceReporter
-
create
- Specified by:
create
in interfaceProvenanceReporter
-
create
- Specified by:
create
in interfaceProvenanceReporter
-
getFlowFilesReceived
public int getFlowFilesReceived()- Specified by:
getFlowFilesReceived
in interfaceProvenanceReporter
-
getBytesReceived
public long getBytesReceived()- Specified by:
getBytesReceived
in interfaceProvenanceReporter
-
getFlowFilesFetched
public int getFlowFilesFetched()- Specified by:
getFlowFilesFetched
in interfaceProvenanceReporter
-
getBytesFetched
public long getBytesFetched()- Specified by:
getBytesFetched
in interfaceProvenanceReporter
-
getFlowFilesSent
public int getFlowFilesSent()- Specified by:
getFlowFilesSent
in interfaceProvenanceReporter
-
getBytesSent
public long getBytesSent()- Specified by:
getBytesSent
in interfaceProvenanceReporter
-
build
-