@Deprecated @InputRequirement(value=INPUT_FORBIDDEN) @Tags(value={"listen","lumberjack","tcp","logs"}) @CapabilityDescription(value="This processor is deprecated and may be removed in the near future. Listens for Lumberjack messages being sent to a given port over TCP. Each message will be acknowledged after successfully writing the message to a FlowFile. Each FlowFile will contain data portion of one or more Lumberjack frames. In the case where the Lumberjack frames contain syslog messages, the output of this processor can be sent to a ParseSyslog processor for further processing. ") @WritesAttribute(attribute="lumberjack.sender",description="The sending host of the messages.") @WritesAttribute(attribute="lumberjack.port",description="The sending port the messages were received over.") @WritesAttribute(attribute="lumberjack.sequencenumber",description="The sequence number of the message. Only included if <Batch Size> is 1.") @WritesAttribute(attribute="lumberjack.*",description="The keys and respective values as sent by the lumberjack producer. Only included if <Batch Size> is 1.") @WritesAttribute(attribute="mime.type",description="The mime.type of the content which is text/plain") @SeeAlso(classNames="org.apache.nifi.processors.standard.ParseSyslog") public class ListenLumberjack extends AbstractListenEventBatchingProcessor<LumberjackEvent>
| Modifier and Type | Class and Description |
|---|---|
static class |
ListenLumberjack.LumberjackAttributes
Deprecated.
|
AbstractListenEventBatchingProcessor.FlowFileEventBatch| Modifier and Type | Field and Description |
|---|---|
private LumberjackEncoder |
lumberjackEncoder
Deprecated.
|
static PropertyDescriptor |
SSL_CONTEXT_SERVICE
Deprecated.
|
MAX_BATCH_SIZE, MESSAGE_DELIMITER, messageDemarcatorBytescharset, CHARSET, descriptors, dispatcher, errorEvents, events, MAX_CONNECTIONS, MAX_MESSAGE_QUEUE_SIZE, MAX_SOCKET_BUFFER_SIZE, POLL_TIMEOUT_MS, port, PORT, RECV_BUFFER_SIZE, REL_SUCCESS, relationships| Constructor and Description |
|---|
ListenLumberjack()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected ChannelDispatcher |
createDispatcher(ProcessContext context,
BlockingQueue<LumberjackEvent> events)
Deprecated.
|
protected Collection<ValidationResult> |
customValidate(ValidationContext validationContext)
Deprecated.
|
protected List<PropertyDescriptor> |
getAdditionalProperties()
Deprecated.
|
protected Map<String,String> |
getAttributes(AbstractListenEventBatchingProcessor.FlowFileEventBatch batch)
Deprecated.
|
protected String |
getBatchKey(LumberjackEvent event)
Deprecated.
|
protected String |
getTransitUri(AbstractListenEventBatchingProcessor.FlowFileEventBatch batch)
Deprecated.
|
void |
onScheduled(ProcessContext context)
Deprecated.
|
protected void |
postProcess(ProcessContext context,
ProcessSession session,
List<LumberjackEvent> events)
Deprecated.
|
protected void |
respond(LumberjackEvent event,
LumberjackResponse lumberjackResponse)
Deprecated.
|
getBatches, init, onTriggergetAdditionalRelationships, getDispatcherPort, getErrorQueueSize, getLongPollTimeout, getMessage, getQueueSize, getRelationships, getSupportedPropertyDescriptors, onUnscheduledonTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueequals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final PropertyDescriptor SSL_CONTEXT_SERVICE
private volatile LumberjackEncoder lumberjackEncoder
protected List<PropertyDescriptor> getAdditionalProperties()
getAdditionalProperties in class AbstractListenEventProcessor<LumberjackEvent>protected Collection<ValidationResult> customValidate(ValidationContext validationContext)
customValidate in class AbstractConfigurableComponent@OnScheduled public void onScheduled(ProcessContext context) throws IOException
onScheduled in class AbstractListenEventBatchingProcessor<LumberjackEvent>IOExceptionprotected ChannelDispatcher createDispatcher(ProcessContext context, BlockingQueue<LumberjackEvent> events) throws IOException
createDispatcher in class AbstractListenEventProcessor<LumberjackEvent>IOExceptionprotected String getBatchKey(LumberjackEvent event)
getBatchKey in class AbstractListenEventBatchingProcessor<LumberjackEvent>protected void respond(LumberjackEvent event, LumberjackResponse lumberjackResponse)
protected void postProcess(ProcessContext context, ProcessSession session, List<LumberjackEvent> events)
postProcess in class AbstractListenEventBatchingProcessor<LumberjackEvent>protected String getTransitUri(AbstractListenEventBatchingProcessor.FlowFileEventBatch batch)
getTransitUri in class AbstractListenEventBatchingProcessor<LumberjackEvent>protected Map<String,String> getAttributes(AbstractListenEventBatchingProcessor.FlowFileEventBatch batch)
getAttributes in class AbstractListenEventBatchingProcessor<LumberjackEvent>Copyright © 2021 Apache NiFi Project. All rights reserved.