@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) |
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
static 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 AbstractSessionFactoryProcessor
public Set<Relationship> getRelationships()
getRelationships
in interface Processor
getRelationships
in class AbstractSessionFactoryProcessor
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger
in class AbstractProcessor
ProcessException
Copyright © 2021 Apache NiFi Project. All rights reserved.