Class ListenUDPRecord

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processor.util.listen.AbstractListenEventProcessor<StandardEvent>
org.apache.nifi.processors.standard.ListenUDPRecord
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.processor.Processor

@SupportsBatching @Tags({"ingest","udp","listen","source","record"}) @InputRequirement(INPUT_FORBIDDEN) @CapabilityDescription("Listens for Datagram Packets on a given port and reads the content of each datagram using the configured Record Reader. Each record will then be written to a flow file using the configured Record Writer. This processor can be restricted to listening for datagrams from a specific remote host and port by specifying the Sending Host and Sending Host Port properties, otherwise it will listen for datagrams from all hosts and ports.") @WritesAttribute(attribute="udp.sender",description="The sending host of the messages.") @WritesAttribute(attribute="udp.port",description="The sending port the messages were received.") @WritesAttribute(attribute="record.count",description="The number of records written to the flow file.") @WritesAttribute(attribute="mime.type",description="The mime-type of the writer used to write the records to the flow file.") public class ListenUDPRecord extends AbstractListenEventProcessor<StandardEvent>
  • Field Details

    • SENDING_HOST

      public static final org.apache.nifi.components.PropertyDescriptor SENDING_HOST
    • SENDING_HOST_PORT

      public static final org.apache.nifi.components.PropertyDescriptor SENDING_HOST_PORT
    • RECORD_READER

      public static final org.apache.nifi.components.PropertyDescriptor RECORD_READER
    • RECORD_WRITER

      public static final org.apache.nifi.components.PropertyDescriptor RECORD_WRITER
    • POLL_TIMEOUT

      public static final org.apache.nifi.components.PropertyDescriptor POLL_TIMEOUT
    • BATCH_SIZE

      public static final org.apache.nifi.components.PropertyDescriptor BATCH_SIZE
    • ADDITIONAL_PROPERTIES

      private static final List<org.apache.nifi.components.PropertyDescriptor> ADDITIONAL_PROPERTIES
    • REL_PARSE_FAILURE

      public static final org.apache.nifi.processor.Relationship REL_PARSE_FAILURE
    • ADDITIONAL_RELATIONSHIPS

      private static final List<org.apache.nifi.processor.Relationship> ADDITIONAL_RELATIONSHIPS
    • UDP_PORT_ATTR

      public static final String UDP_PORT_ATTR
      See Also:
    • UDP_SENDER_ATTR

      public static final String UDP_SENDER_ATTR
      See Also:
    • RECORD_COUNT_ATTR

      public static final String RECORD_COUNT_ATTR
      See Also:
    • pollTimeout

      private volatile long pollTimeout
  • Constructor Details

    • ListenUDPRecord

      public ListenUDPRecord()
  • Method Details