NIFI-220: Added to provenance event number of events received

This commit is contained in:
Mark Payne 2015-01-13 19:28:53 -05:00
parent a77fb50116
commit eaca6a29d3
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ public class GetKafka extends AbstractProcessor {
} else {
flowFile = session.putAllAttributes(flowFile, attributes);
final long millis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - start);
session.getProvenanceReporter().receive(flowFile, "kafka://" + topic, millis);
session.getProvenanceReporter().receive(flowFile, "kafka://" + topic, "Received " + numMessages + " Kafka messages", millis);
getLogger().info("Successfully received {} from Kafka with {} messages in {} millis", new Object[] {flowFile, numMessages, millis});
session.transfer(flowFile, REL_SUCCESS);
}