public class MockProvenanceReporter extends Object implements ProvenanceReporter
Modifier and Type | Field and Description |
---|---|
private Set<ProvenanceEventRecord> |
events |
private static org.slf4j.Logger |
logger |
private String |
processorId |
private String |
processorType |
private MockProcessSession |
session |
private SharedSessionState |
sharedSessionState |
Constructor and Description |
---|
MockProvenanceReporter(MockProcessSession session,
SharedSessionState sharedState,
String processorId,
String processorType) |
Modifier and Type | Method and Description |
---|---|
void |
associate(FlowFile flowFile,
String alternateIdentifierNamespace,
String alternateIdentifier) |
(package private) ProvenanceEventBuilder |
build(FlowFile flowFile,
ProvenanceEventType eventType) |
(package private) void |
clear() |
void |
clone(FlowFile parent,
FlowFile child) |
void |
create(FlowFile flowFile) |
void |
create(FlowFile flowFile,
String details) |
(package private) ProvenanceEventRecord |
drop(FlowFile flowFile,
String reason) |
(package private) void |
expire(FlowFile flowFile,
String details) |
void |
fetch(FlowFile flowFile,
String transitUri) |
void |
fetch(FlowFile flowFile,
String transitUri,
long transmissionMillis) |
void |
fetch(FlowFile flowFile,
String transitUri,
String details,
long transmissionMillis) |
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) |
(package private) ProvenanceEventRecord |
generateDropEvent(FlowFile flowFile,
String details) |
(package private) ProvenanceEventRecord |
generateJoinEvent(Collection<FlowFile> parents,
FlowFile child)
Generates a Fork event for the given child and parents but does not
register the event.
|
(package private) Set<ProvenanceEventRecord> |
getEvents() |
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) |
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 |
receive(FlowFile flowFile,
String transitUri) |
void |
receive(FlowFile flowFile,
String transitUri,
long transmissionMillis) |
void |
receive(FlowFile flowFile,
String transitUri,
String sourceSystemFlowFileIdentifier) |
void |
receive(FlowFile flowFile,
String transitUri,
String sourceSystemFlowFileIdentifier,
long transmissionMillis) |
void |
receive(FlowFile flowFile,
String transitUri,
String sourceSystemFlowFileIdentifier,
String details,
long transmissionMillis) |
(package private) void |
remove(ProvenanceEventRecord event)
Removes the given event from the reporter
|
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 |
send(FlowFile flowFile,
String transitUri) |
void |
send(FlowFile flowFile,
String transitUri,
boolean force) |
void |
send(FlowFile flowFile,
String transitUri,
long transmissionMillis) |
void |
send(FlowFile flowFile,
String transitUri,
long transmissionMillis,
boolean force) |
void |
send(FlowFile flowFile,
String transitUri,
String details) |
void |
send(FlowFile flowFile,
String transitUri,
String details,
boolean force) |
void |
send(FlowFile flowFile,
String transitUri,
String details,
long transmissionMillis) |
void |
send(FlowFile flowFile,
String transitUri,
String details,
long transmissionMillis,
boolean force) |
private void |
verifyFlowFileKnown(FlowFile flowFile) |
private static final org.slf4j.Logger logger
private final MockProcessSession session
private final String processorId
private final String processorType
private final SharedSessionState sharedSessionState
private final Set<ProvenanceEventRecord> events
public MockProvenanceReporter(MockProcessSession session, SharedSessionState sharedState, String processorId, String processorType)
private void verifyFlowFileKnown(FlowFile flowFile)
Set<ProvenanceEventRecord> getEvents()
void remove(ProvenanceEventRecord event)
event
- eventvoid clear()
ProvenanceEventRecord generateJoinEvent(Collection<FlowFile> parents, FlowFile child)
parents
- parentschild
- childProvenanceEventRecord generateDropEvent(FlowFile flowFile, String details)
public void receive(FlowFile flowFile, String transitUri)
receive
in interface ProvenanceReporter
public void receive(FlowFile flowFile, String transitUri, String sourceSystemFlowFileIdentifier)
receive
in interface ProvenanceReporter
public void receive(FlowFile flowFile, String transitUri, long transmissionMillis)
receive
in interface ProvenanceReporter
public void receive(FlowFile flowFile, String transitUri, String sourceSystemFlowFileIdentifier, long transmissionMillis)
receive
in interface ProvenanceReporter
public void receive(FlowFile flowFile, String transitUri, String sourceSystemFlowFileIdentifier, String details, long transmissionMillis)
receive
in interface ProvenanceReporter
public void fetch(FlowFile flowFile, String transitUri)
fetch
in interface ProvenanceReporter
public void fetch(FlowFile flowFile, String transitUri, long transmissionMillis)
fetch
in interface ProvenanceReporter
public void fetch(FlowFile flowFile, String transitUri, String details, long transmissionMillis)
fetch
in interface ProvenanceReporter
public void send(FlowFile flowFile, String transitUri, long transmissionMillis)
send
in interface ProvenanceReporter
public void send(FlowFile flowFile, String transitUri)
send
in interface ProvenanceReporter
public void send(FlowFile flowFile, String transitUri, String details)
send
in interface ProvenanceReporter
public void send(FlowFile flowFile, String transitUri, long transmissionMillis, boolean force)
send
in interface ProvenanceReporter
public void send(FlowFile flowFile, String transitUri, String details, boolean force)
send
in interface ProvenanceReporter
public void send(FlowFile flowFile, String transitUri, String details, long transmissionMillis)
send
in interface ProvenanceReporter
public void send(FlowFile flowFile, String transitUri, String details, long transmissionMillis, boolean force)
send
in interface ProvenanceReporter
public void send(FlowFile flowFile, String transitUri, boolean force)
send
in interface ProvenanceReporter
public void associate(FlowFile flowFile, String alternateIdentifierNamespace, String alternateIdentifier)
associate
in interface ProvenanceReporter
ProvenanceEventRecord drop(FlowFile flowFile, String reason)
public void fork(FlowFile parent, Collection<FlowFile> children)
fork
in interface ProvenanceReporter
public void fork(FlowFile parent, Collection<FlowFile> children, long forkDuration)
fork
in interface ProvenanceReporter
public void fork(FlowFile parent, Collection<FlowFile> children, String details)
fork
in interface ProvenanceReporter
public void fork(FlowFile parent, Collection<FlowFile> children, String details, long forkDuration)
fork
in interface ProvenanceReporter
public void join(Collection<FlowFile> parents, FlowFile child)
join
in interface ProvenanceReporter
public void join(Collection<FlowFile> parents, FlowFile child, long joinDuration)
join
in interface ProvenanceReporter
public void join(Collection<FlowFile> parents, FlowFile child, String details)
join
in interface ProvenanceReporter
public void join(Collection<FlowFile> parents, FlowFile child, String details, long joinDuration)
join
in interface ProvenanceReporter
public void clone(FlowFile parent, FlowFile child)
clone
in interface ProvenanceReporter
public void modifyContent(FlowFile flowFile)
modifyContent
in interface ProvenanceReporter
public void modifyContent(FlowFile flowFile, String details)
modifyContent
in interface ProvenanceReporter
public void modifyContent(FlowFile flowFile, long processingMillis)
modifyContent
in interface ProvenanceReporter
public void modifyContent(FlowFile flowFile, String details, long processingMillis)
modifyContent
in interface ProvenanceReporter
public void modifyAttributes(FlowFile flowFile)
modifyAttributes
in interface ProvenanceReporter
public void modifyAttributes(FlowFile flowFile, String details)
modifyAttributes
in interface ProvenanceReporter
public void route(FlowFile flowFile, Relationship relationship)
route
in interface ProvenanceReporter
public void route(FlowFile flowFile, Relationship relationship, long processingDuration)
route
in interface ProvenanceReporter
public void route(FlowFile flowFile, Relationship relationship, String details)
route
in interface ProvenanceReporter
public void route(FlowFile flowFile, Relationship relationship, String details, long processingDuration)
route
in interface ProvenanceReporter
public void create(FlowFile flowFile)
create
in interface ProvenanceReporter
public void create(FlowFile flowFile, String details)
create
in interface ProvenanceReporter
ProvenanceEventBuilder build(FlowFile flowFile, ProvenanceEventType eventType)
Copyright © 2017 Apache NiFi Project. All rights reserved.