@EventDriven @SupportsBatching @Tags(value={"test","load","duplicate"}) @InputRequirement(value=INPUT_REQUIRED) @CapabilityDescription(value="Intended for load testing, this processor will create the configured number of copies of each incoming FlowFile. The original FlowFile as well as all generated copies are sent to the \'success\' relationship. In addition, each FlowFile gets an attribute \'copy.index\' set to the copy number, where the original FlowFile gets a value of zero, and all copies receive incremented integer values.") @WritesAttributes(value=@WritesAttribute(attribute="copy.index",description="A zero-based incrementing integer value based on which copy the FlowFile is.")) public class DuplicateFlowFile extends AbstractProcessor
Modifier and Type | Field and Description |
---|---|
static String |
COPY_INDEX_ATTRIBUTE |
(package private) static PropertyDescriptor |
NUM_COPIES |
(package private) static Relationship |
REL_SUCCESS |
Constructor and Description |
---|
DuplicateFlowFile() |
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
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public static final String COPY_INDEX_ATTRIBUTE
static final PropertyDescriptor NUM_COPIES
static final Relationship REL_SUCCESS
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 © 2020 Apache NiFi Project. All rights reserved.