@EventDriven @SupportsBatching @Tags(value={"map","cache","notify","distributed","signal","release"}) @InputRequirement(value=INPUT_REQUIRED) @CapabilityDescription(value="Caches a release signal identifier in the distributed cache, optionally along with the FlowFile\'s attributes. Any flow files held at a corresponding Wait processor will be released once this signal in the cache is discovered.") @WritesAttribute(attribute="notified", description="All FlowFiles will have an attribute \'notified\'. The value of this attribute is true, is the FlowFile is notified, otherwise false.") @SeeAlso(classNames={"org.apache.nifi.distributed.cache.client.DistributedMapCacheClientService","org.apache.nifi.distributed.cache.server.map.DistributedMapCacheServer","org.apache.nifi.processors.standard.Wait"}) public class Notify extends AbstractProcessor
Modifier and Type | Class and Description |
---|---|
private class |
Notify.SignalBuffer |
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptor |
ATTRIBUTE_CACHE_REGEX |
static PropertyDescriptor |
DISTRIBUTED_CACHE_SERVICE |
static String |
NOTIFIED_ATTRIBUTE_NAME |
static Relationship |
REL_FAILURE |
static Relationship |
REL_SUCCESS |
private Set<Relationship> |
relationships |
static PropertyDescriptor |
RELEASE_SIGNAL_IDENTIFIER |
static PropertyDescriptor |
SIGNAL_BUFFER_COUNT |
static PropertyDescriptor |
SIGNAL_COUNTER_DELTA |
static PropertyDescriptor |
SIGNAL_COUNTER_NAME |
Constructor and Description |
---|
Notify() |
Modifier and Type | Method and Description |
---|---|
Set<Relationship> |
getRelationships() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isStateful
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public static final String NOTIFIED_ATTRIBUTE_NAME
public static final PropertyDescriptor DISTRIBUTED_CACHE_SERVICE
public static final PropertyDescriptor RELEASE_SIGNAL_IDENTIFIER
public static final PropertyDescriptor SIGNAL_COUNTER_NAME
public static final PropertyDescriptor SIGNAL_COUNTER_DELTA
public static final PropertyDescriptor SIGNAL_BUFFER_COUNT
public static final PropertyDescriptor ATTRIBUTE_CACHE_REGEX
public static final Relationship REL_SUCCESS
public static final Relationship REL_FAILURE
private final Set<Relationship> relationships
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
public Set<Relationship> getRelationships()
getRelationships
in interface Processor
getRelationships
in class AbstractSessionFactoryProcessor
public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger
in class AbstractProcessor
ProcessException
Copyright © 2022 Apache NiFi Project. All rights reserved.