public abstract class AbstractPutEventProcessor<T> extends AbstractSessionFactoryProcessor
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractPutEventProcessor.FlowFileMessageBatch
A wrapper to hold the ranges of a FlowFile that were successful and ranges that failed, and then
transfer those ranges appropriately.
|
protected static class |
AbstractPutEventProcessor.Range
Represents a range of messages from a FlowFile.
|
| Modifier and Type | Field and Description |
|---|---|
protected Set<AbstractPutEventProcessor.FlowFileMessageBatch> |
activeBatches |
static PropertyDescriptor |
CHARSET |
protected BlockingQueue<AbstractPutEventProcessor.FlowFileMessageBatch> |
completeBatches |
static PropertyDescriptor |
CONNECTION_PER_FLOWFILE |
private List<PropertyDescriptor> |
descriptors |
protected EventSender<T> |
eventSender |
static PropertyDescriptor |
HOSTNAME |
static PropertyDescriptor |
IDLE_EXPIRATION |
static PropertyDescriptor |
MAX_SOCKET_SEND_BUFFER_SIZE |
static PropertyDescriptor |
MESSAGE_DELIMITER |
static PropertyDescriptor |
OUTGOING_MESSAGE_DELIMITER |
static PropertyDescriptor |
PORT |
static PropertyDescriptor |
PROTOCOL |
static Relationship |
REL_FAILURE |
static Relationship |
REL_SUCCESS |
private Set<Relationship> |
relationships |
static PropertyDescriptor |
SSL_CONTEXT_SERVICE |
static AllowableValue |
TCP_VALUE |
static PropertyDescriptor |
TIMEOUT |
protected String |
transitUri |
static AllowableValue |
UDP_VALUE |
| Constructor and Description |
|---|
AbstractPutEventProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeSenders() |
protected String |
createTransitUri(ProcessContext context) |
protected List<PropertyDescriptor> |
getAdditionalProperties()
Override to provide additional properties for the processor.
|
protected List<Relationship> |
getAdditionalRelationships()
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 String |
getOutgoingMessageDelimiter(ProcessContext context,
FlowFile flowFile)
Gets the current value of the "Outgoing Message Delimiter" property and parses the special characters.
|
protected String |
getProtocol(ProcessContext context) |
Set<Relationship> |
getRelationships() |
List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ProcessorInitializationContext context) |
void |
onScheduled(ProcessContext context) |
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStateful, onTriggergetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final PropertyDescriptor HOSTNAME
public static final PropertyDescriptor PORT
public static final PropertyDescriptor MAX_SOCKET_SEND_BUFFER_SIZE
public static final PropertyDescriptor IDLE_EXPIRATION
public static final AllowableValue TCP_VALUE
public static final AllowableValue UDP_VALUE
public static final PropertyDescriptor PROTOCOL
public static final PropertyDescriptor MESSAGE_DELIMITER
public static final PropertyDescriptor CHARSET
public static final PropertyDescriptor TIMEOUT
public static final PropertyDescriptor OUTGOING_MESSAGE_DELIMITER
public static final PropertyDescriptor CONNECTION_PER_FLOWFILE
public static final PropertyDescriptor SSL_CONTEXT_SERVICE
public static final Relationship REL_SUCCESS
public static final Relationship REL_FAILURE
private Set<Relationship> relationships
private List<PropertyDescriptor> descriptors
protected volatile String transitUri
protected EventSender<T> eventSender
protected final BlockingQueue<AbstractPutEventProcessor.FlowFileMessageBatch> completeBatches
protected final Set<AbstractPutEventProcessor.FlowFileMessageBatch> activeBatches
protected void init(ProcessorInitializationContext context)
init in class AbstractSessionFactoryProcessorprotected List<Relationship> getAdditionalRelationships()
protected List<PropertyDescriptor> getAdditionalProperties()
public final Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorpublic final List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponent@OnScheduled public void onScheduled(ProcessContext context) throws IOException
IOException@OnStopped public void closeSenders() throws Exception
Exceptionprotected String createTransitUri(ProcessContext context)
protected EventSender<T> getEventSender(ProcessContext context)
protected String getOutgoingMessageDelimiter(ProcessContext context, FlowFile flowFile)
context - - the current process context.flowFile - - the FlowFile being processed.protected String getProtocol(ProcessContext context)
protected abstract NettyEventSenderFactory<T> getNettyEventSenderFactory(String hostname, int port, String protocol)
Copyright © 2022 Apache NiFi Project. All rights reserved.