Class ListenUDP
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.processor.util.listen.AbstractListenEventBatchingProcessor<StandardEvent>
org.apache.nifi.processors.standard.ListenUDP
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.processor.Processor
@SupportsBatching
@Tags({"ingest","udp","listen","source"})
@InputRequirement(INPUT_FORBIDDEN)
@CapabilityDescription("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>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.nifi.processor.util.listen.AbstractListenEventBatchingProcessor
AbstractListenEventBatchingProcessor.FlowFileEventBatch -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final List<org.apache.nifi.components.PropertyDescriptor> static final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorstatic final Stringstatic final StringFields inherited from class org.apache.nifi.processor.util.listen.AbstractListenEventBatchingProcessor
messageDemarcatorBytesFields inherited from class org.apache.nifi.processor.util.listen.AbstractListenEventProcessor
charset, 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ChannelDispatchercreateDispatcher(org.apache.nifi.processor.ProcessContext context, BlockingQueue<StandardEvent> events) protected Collection<org.apache.nifi.components.ValidationResult> customValidate(org.apache.nifi.components.ValidationContext validationContext) protected List<org.apache.nifi.components.PropertyDescriptor> protected StringMethods inherited from class org.apache.nifi.processor.util.listen.AbstractListenEventBatchingProcessor
getBatches, getBatchKey, init, onScheduled, onTrigger, postProcessMethods inherited from class org.apache.nifi.processor.util.listen.AbstractListenEventProcessor
closeDispatcher, getAdditionalRelationships, getDispatcherPort, getErrorQueueSize, getListeningPort, getLongPollTimeout, getMessage, getQueueSize, getRelationships, getSupportedPropertyDescriptorsMethods inherited from class org.apache.nifi.processor.AbstractProcessor
onTriggerMethods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateProperties, migrateRelationships
-
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 -
ADDITIONAL_PROPERTIES
-
UDP_PORT_ATTR
- See Also:
-
UDP_SENDER_ATTR
- See Also:
-
-
Constructor Details
-
ListenUDP
public ListenUDP()
-
-
Method Details
-
getAdditionalProperties
- Overrides:
getAdditionalPropertiesin classAbstractListenEventProcessor<StandardEvent>
-
customValidate
protected Collection<org.apache.nifi.components.ValidationResult> customValidate(org.apache.nifi.components.ValidationContext validationContext) - Overrides:
customValidatein classorg.apache.nifi.components.AbstractConfigurableComponent
-
createDispatcher
protected ChannelDispatcher createDispatcher(org.apache.nifi.processor.ProcessContext context, BlockingQueue<StandardEvent> events) - Specified by:
createDispatcherin classAbstractListenEventProcessor<StandardEvent>
-
getAttributes
protected Map<String,String> getAttributes(AbstractListenEventBatchingProcessor<StandardEvent>.FlowFileEventBatch batch) - Specified by:
getAttributesin classAbstractListenEventBatchingProcessor<StandardEvent>
-
getTransitUri
protected String getTransitUri(AbstractListenEventBatchingProcessor<StandardEvent>.FlowFileEventBatch batch) - Specified by:
getTransitUriin classAbstractListenEventBatchingProcessor<StandardEvent>
-