@CapabilityDescription(value="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(value=INPUT_REQUIRED) @SeeAlso(value={ListenUDP.class,PutTCP.class}) @Tags(value={"remote","egress","put","udp"}) @SupportsBatching public class PutUDP extends AbstractPutEventProcessor<byte[]>
AbstractPutEventProcessor.FlowFileMessageBatch, AbstractPutEventProcessor.RangeactiveBatches, CHARSET, completeBatches, CONNECTION_PER_FLOWFILE, eventSender, HOSTNAME, IDLE_EXPIRATION, MAX_SOCKET_SEND_BUFFER_SIZE, MESSAGE_DELIMITER, OUTGOING_MESSAGE_DELIMITER, PORT, PROTOCOL, REL_FAILURE, REL_SUCCESS, SSL_CONTEXT_SERVICE, TCP_VALUE, TIMEOUT, transitUri, UDP_VALUE| Constructor and Description |
|---|
PutUDP() |
| Modifier and Type | Method and Description |
|---|---|
protected NettyEventSenderFactory<byte[]> |
getNettyEventSenderFactory(String hostname,
int port,
String protocol) |
protected String |
getProtocol(ProcessContext context) |
void |
onTrigger(ProcessContext context,
ProcessSessionFactory sessionFactory) |
private byte[] |
readContent(ProcessSession session,
FlowFile flowFile) |
closeSenders, createTransitUri, getAdditionalProperties, getAdditionalRelationships, getEventSender, getOutgoingMessageDelimiter, getRelationships, getSupportedPropertyDescriptors, init, onScheduledgetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic void onTrigger(ProcessContext context, ProcessSessionFactory sessionFactory) throws ProcessException
ProcessExceptionprotected String getProtocol(ProcessContext context)
getProtocol in class AbstractPutEventProcessor<byte[]>protected NettyEventSenderFactory<byte[]> getNettyEventSenderFactory(String hostname, int port, String protocol)
getNettyEventSenderFactory in class AbstractPutEventProcessor<byte[]>private byte[] readContent(ProcessSession session, FlowFile flowFile) throws IOException
IOExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.