@CapabilityDescription(value="The PutTCP processor receives a FlowFile and transmits the FlowFile content over a TCP connection to the configured TCP server. By default, the FlowFiles are transmitted over the same TCP connection (or pool of TCP connections if multiple input threads are configured). To assist the TCP server with determining message boundaries, an optional \"Outgoing Message Delimiter\" string can be configured which is appended to the end of each FlowFiles content when it is transmitted over the TCP connection. An optional \"Connection Per FlowFile\" parameter can be specified to change the behaviour so that each FlowFiles content is transmitted over a single TCP connection which is opened when the FlowFile is received and closed after the FlowFile has been sent. This option should only be used for low message volume scenarios, otherwise the platform may run out of TCP sockets.") @InputRequirement(value=INPUT_REQUIRED) @SeeAlso(value={ListenTCP.class,PutUDP.class}) @Tags(value={"remote","egress","put","tcp"}) @SupportsBatching public class PutTCP extends AbstractPutEventProcessor<InputStream>
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 |
|---|
PutTCP() |
| Modifier and Type | Method and Description |
|---|---|
protected List<PropertyDescriptor> |
getAdditionalProperties() |
protected NettyEventSenderFactory<InputStream> |
getNettyEventSenderFactory(String hostname,
int port,
String protocol) |
protected String |
getProtocol(ProcessContext context) |
void |
onTrigger(ProcessContext context,
ProcessSessionFactory sessionFactory) |
closeSenders, createTransitUri, 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, validateprotected List<PropertyDescriptor> getAdditionalProperties()
getAdditionalProperties in class AbstractPutEventProcessor<InputStream>public void onTrigger(ProcessContext context, ProcessSessionFactory sessionFactory) throws ProcessException
ProcessExceptionprotected String getProtocol(ProcessContext context)
getProtocol in class AbstractPutEventProcessor<InputStream>protected NettyEventSenderFactory<InputStream> getNettyEventSenderFactory(String hostname, int port, String protocol)
getNettyEventSenderFactory in class AbstractPutEventProcessor<InputStream>Copyright © 2023 Apache NiFi Project. All rights reserved.