[
https://issues.apache.org/jira/browse/NIFI-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14522602#comment-14522602
]
ASF GitHub Bot commented on NIFI-548:
-------------------------------------
GitHub user bbende opened a pull request:
https://github.com/apache/incubator-nifi/pull/48
NIFI-548
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/48.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 #48
----
commit 8d4c8f6899a63a2b6bbe1503825cd01e6763c5cc
Author: bbende <[email protected]>
Date: 2015-04-30T00:53:18Z
Initial changes to pass down a property from ListenUDP to the
DatagramReader for one FlowFile per datagram
commit 37c6facc69c469c486c6205e38aaa0972af8077e
Author: bbende <[email protected]>
Date: 2015-04-30T01:29:10Z
Updating UDPConsumerCallback to consider use the FlowFile-Per-Datagram
property
commit cbe8e694f6717ae3d0b3aca62d4b84403d9ac51b
Author: bbende <[email protected]>
Date: 2015-05-01T01:00:00Z
Merge remote-tracking branch 'upstream/develop' into NIFI-548
----
> Listen UDP should support generation of a flowfile per datagram
> ---------------------------------------------------------------
>
> Key: NIFI-548
> URL: https://issues.apache.org/jira/browse/NIFI-548
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: Bryan Bende
> Priority: Minor
>
> Listen UDP presently places udp datagrams into a buffer and then once the
> buffer reaches some trigger size/age it turns that into a flowfile. There
> should be an option to turn each received datagram into a flowfile. This is
> helpful for cases where each datagram is a complete object by itself but that
> isnt necessarily trivially demarcated if it were concatenated with other
> datagrams.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)