@InputRequirement(value=INPUT_REQUIRED) @Tags(value={"counter","debug","instrumentation"}) @CapabilityDescription(value="This processor allows users to set specific counters and key points in their flow. It is useful for debugging and basic counting functions.") @ReadsAttribute(attribute="counterName", description="The name of the counter to update/get.") public class UpdateCounter extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
(package private) static PropertyDescriptor |
COUNTER_NAME |
(package private) static PropertyDescriptor |
DELTA |
private List<PropertyDescriptor> |
descriptors |
private Set<Relationship> |
relationships |
(package private) static Relationship |
SUCCESS |
| Constructor and Description |
|---|
UpdateCounter() |
| Modifier and Type | Method and Description |
|---|---|
Set<Relationship> |
getRelationships() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ProcessorInitializationContext context) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
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, validatestatic final PropertyDescriptor COUNTER_NAME
static final PropertyDescriptor DELTA
static final Relationship SUCCESS
private List<PropertyDescriptor> descriptors
private Set<Relationship> relationships
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) throws ProcessException
onTrigger in class AbstractProcessorProcessExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.