Class PutUDP

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.util.put.AbstractPutEventProcessor<byte[]>
org.apache.nifi.processors.standard.PutUDP
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.processor.Processor

@CapabilityDescription("The PutUDP processor receives a FlowFile and packages the FlowFile content into a single UDP datagram packet which is then transmitted to the configured UDP server. The user must ensure that the FlowFile content being fed to this processor is not larger than the maximum size for the underlying UDP transport. The maximum transport size will vary based on the platform setup but is generally just under 64KB. FlowFiles will be marked as failed if their content is larger than the maximum transport size.") @InputRequirement(INPUT_REQUIRED) @SeeAlso({ListenUDP.class,PutTCP.class}) @Tags({"remote","egress","put","udp"}) @SupportsBatching public class PutUDP extends AbstractPutEventProcessor<byte[]>
  • Constructor Details

    • PutUDP

      public PutUDP()
  • Method Details

    • onTrigger

      public void onTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSessionFactory sessionFactory) throws org.apache.nifi.processor.exception.ProcessException
      Throws:
      org.apache.nifi.processor.exception.ProcessException
    • getProtocol

      protected String getProtocol(org.apache.nifi.processor.ProcessContext context)
      Overrides:
      getProtocol in class AbstractPutEventProcessor<byte[]>
    • getNettyEventSenderFactory

      protected NettyEventSenderFactory<byte[]> getNettyEventSenderFactory(String hostname, int port, String protocol)
      Specified by:
      getNettyEventSenderFactory in class AbstractPutEventProcessor<byte[]>
    • readContent

      private byte[] readContent(org.apache.nifi.processor.ProcessSession session, org.apache.nifi.flowfile.FlowFile flowFile) throws IOException
      Throws:
      IOException