@SupportsBatching @Tags(value={"ingest","udp","listen","source"}) @InputRequirement(value=INPUT_FORBIDDEN) @CapabilityDescription(value="Listens for Datagram Packets on a given port. The default behavior produces a FlowFile per datagram, however for higher throughput the Max Batch Size property may be increased to specify the number of datagrams to batch together in a single FlowFile. 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.") public class ListenUDP extends AbstractListenEventBatchingProcessor<StandardEvent>
| Modifier and Type | Class and Description |
|---|---|
static class |
ListenUDP.HostValidator |
AbstractListenEventBatchingProcessor.FlowFileEventBatch| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
SENDING_HOST |
static PropertyDescriptor |
SENDING_HOST_PORT |
static String |
UDP_PORT_ATTR |
static String |
UDP_SENDER_ATTR |
messageDemarcatorBytescharset, CHARSET, descriptors, dispatcher, errorEvents, events, MAX_MESSAGE_QUEUE_SIZE, MAX_SOCKET_BUFFER_SIZE, POLL_TIMEOUT_MS, port, PORT, RECV_BUFFER_SIZE, REL_SUCCESS, relationships| Constructor and Description |
|---|
ListenUDP() |
| Modifier and Type | Method and Description |
|---|---|
protected ChannelDispatcher |
createDispatcher(ProcessContext context,
BlockingQueue<StandardEvent> events) |
protected Collection<ValidationResult> |
customValidate(ValidationContext validationContext) |
protected List<PropertyDescriptor> |
getAdditionalProperties() |
protected Map<String,String> |
getAttributes(AbstractListenEventBatchingProcessor.FlowFileEventBatch batch) |
protected String |
getTransitUri(AbstractListenEventBatchingProcessor.FlowFileEventBatch batch) |
getBatches, getBatchKey, init, onScheduled, onTrigger, postProcesscloseDispatcher, getAdditionalRelationships, getDispatcherPort, getErrorQueueSize, getListeningPort, getLongPollTimeout, getMessage, getQueueSize, getRelationships, getSupportedPropertyDescriptorsonTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueequals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final PropertyDescriptor SENDING_HOST
public static final PropertyDescriptor SENDING_HOST_PORT
public static final String UDP_PORT_ATTR
public static final String UDP_SENDER_ATTR
protected List<PropertyDescriptor> getAdditionalProperties()
getAdditionalProperties in class AbstractListenEventProcessor<StandardEvent>protected Collection<ValidationResult> customValidate(ValidationContext validationContext)
customValidate in class AbstractConfigurableComponentprotected ChannelDispatcher createDispatcher(ProcessContext context, BlockingQueue<StandardEvent> events) throws IOException
createDispatcher in class AbstractListenEventProcessor<StandardEvent>IOExceptionprotected Map<String,String> getAttributes(AbstractListenEventBatchingProcessor.FlowFileEventBatch batch)
getAttributes in class AbstractListenEventBatchingProcessor<StandardEvent>protected String getTransitUri(AbstractListenEventBatchingProcessor.FlowFileEventBatch batch)
getTransitUri in class AbstractListenEventBatchingProcessor<StandardEvent>Copyright © 2023 Apache NiFi Project. All rights reserved.