Class AbstractPutEventProcessor<T>
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.util.put.AbstractPutEventProcessor<T>
- All Implemented Interfaces:
ConfigurableComponent,Processor
A base class for processors that send data to an external system using TCP or UDP.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classA wrapper to hold the ranges of a FlowFile that were successful and ranges that failed, and then transfer those ranges appropriately.protected static classRepresents a range of messages from a FlowFile. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Set<AbstractPutEventProcessor<T>.FlowFileMessageBatch> static final PropertyDescriptorprotected final BlockingQueue<AbstractPutEventProcessor<T>.FlowFileMessageBatch> static final PropertyDescriptorprivate List<PropertyDescriptor> protected EventSender<T> static final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final PropertyDescriptorstatic final Relationshipstatic final Relationshipprivate Set<Relationship> static final PropertyDescriptorstatic final AllowableValuestatic final PropertyDescriptorprotected Stringstatic final AllowableValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected StringcreateTransitUri(ProcessContext context) protected List<PropertyDescriptor> Override to provide additional properties for the processor.protected List<Relationship> Override to provide additional relationships for the processor.protected EventSender<T> getEventSender(ProcessContext context) protected abstract NettyEventSenderFactory<T> getNettyEventSenderFactory(String hostname, int port, String protocol) protected StringgetOutgoingMessageDelimiter(ProcessContext context, FlowFile flowFile) Gets the current value of the "Outgoing Message Delimiter" property and parses the special characters.protected StringgetProtocol(ProcessContext context) final Set<Relationship> final List<PropertyDescriptor> protected voidinit(ProcessorInitializationContext context) voidonScheduled(ProcessContext context) Methods 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
customValidate, 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, onTrigger
-
Field Details
-
HOSTNAME
-
PORT
-
MAX_SOCKET_SEND_BUFFER_SIZE
-
IDLE_EXPIRATION
-
TCP_VALUE
-
UDP_VALUE
-
PROTOCOL
-
MESSAGE_DELIMITER
-
CHARSET
-
TIMEOUT
-
OUTGOING_MESSAGE_DELIMITER
-
CONNECTION_PER_FLOWFILE
-
SSL_CONTEXT_SERVICE
-
REL_SUCCESS
-
REL_FAILURE
-
relationships
-
descriptors
-
transitUri
-
eventSender
-
completeBatches
-
activeBatches
-
-
Constructor Details
-
AbstractPutEventProcessor
public AbstractPutEventProcessor()
-
-
Method Details
-
init
- Overrides:
initin classAbstractSessionFactoryProcessor
-
getAdditionalRelationships
Override to provide additional relationships for the processor.- Returns:
- a list of relationships
-
getAdditionalProperties
Override to provide additional properties for the processor.- Returns:
- a list of properties
-
getRelationships
- Specified by:
getRelationshipsin interfaceProcessor- Overrides:
getRelationshipsin classAbstractSessionFactoryProcessor
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classAbstractConfigurableComponent
-
onScheduled
- Throws:
IOException
-
closeSenders
- Throws:
Exception
-
createTransitUri
-
getEventSender
-
getOutgoingMessageDelimiter
Gets the current value of the "Outgoing Message Delimiter" property and parses the special characters.- Parameters:
context- - the current process context.flowFile- - the FlowFile being processed.- Returns:
- String containing the Delimiter value.
-
getProtocol
-
getNettyEventSenderFactory
protected abstract NettyEventSenderFactory<T> getNettyEventSenderFactory(String hostname, int port, String protocol)
-