@EventDriven @SideEffectFree @SupportsBatching(defaultDuration=TWENTY_FIVE_MILLIS) @Tags(value={"attributes","logging"}) @InputRequirement(value=INPUT_REQUIRED) @CapabilityDescription(value="Emits a log message at the specified log level") public class LogMessage extends AbstractProcessor
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
LogMessage.MessageLogLevel |
| Modifier and Type | Field and Description |
|---|---|
private static int |
CHUNK_SIZE |
static PropertyDescriptor |
LOG_LEVEL |
static PropertyDescriptor |
LOG_MESSAGE |
static PropertyDescriptor |
LOG_PREFIX |
static Relationship |
REL_SUCCESS |
private Set<Relationship> |
relationships |
private List<PropertyDescriptor> |
supportedDescriptors |
| Constructor and Description |
|---|
LogMessage() |
| Modifier and Type | Method and Description |
|---|---|
Set<Relationship> |
getRelationships() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ProcessorInitializationContext context) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
private void |
processFlowFile(ComponentLog logger,
LogMessage.MessageLogLevel logLevel,
FlowFile flowFile,
ProcessContext context) |
onTriggergetControllerServiceLookup, 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, validatepublic static final PropertyDescriptor LOG_LEVEL
public static final PropertyDescriptor LOG_PREFIX
public static final PropertyDescriptor LOG_MESSAGE
public static final Relationship REL_SUCCESS
private static final int CHUNK_SIZE
private Set<Relationship> relationships
private List<PropertyDescriptor> supportedDescriptors
protected void init(ProcessorInitializationContext context)
init in class AbstractSessionFactoryProcessorpublic Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentpublic void onTrigger(ProcessContext context, ProcessSession session)
onTrigger in class AbstractProcessorprivate void processFlowFile(ComponentLog logger, LogMessage.MessageLogLevel logLevel, FlowFile flowFile, ProcessContext context)
Copyright © 2023 Apache NiFi Project. All rights reserved.