@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) |
onTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, 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 String COPY_INDEX_ATTRIBUTE
static final PropertyDescriptor NUM_COPIES
static final Relationship REL_SUCCESS
public 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.