GitHub user bbende opened a pull request:
https://github.com/apache/incubator-nifi/pull/54
NIFI-548 - Listen UDP should support generation of a flowfile per datagram
This pull request shows a possible approach to support "FlowFile per
Datagram" for NIFI-548.
Most of the changes are for passing down a flag from the processor all the
way to the DatagramChannelReader which requires passing through a few levels of
classes.
The important change to the logic is:
* DatagramChannelReader - break out of the receive loop if null, or if we
only want one datagram
* UDPConsumerCallback - break out of writing to the FlowFile OutputStream
if we hit the totalBytes, or if we only want one datagram
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bbende/incubator-nifi NIFI-548
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-nifi/pull/54.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #54
----
commit 22499a9d2dcb76be59262a69e69b5f82bf26a3d7
Author: bbende <[email protected]>
Date: 2015-05-09T03:18:05Z
NIFI-548 - Listen UDP should support generation of a flowfile per datagram
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---