@SupportsBatching @Tags(value={"test","random","generate"}) @InputRequirement(value=INPUT_FORBIDDEN) @CapabilityDescription(value="This processor creates FlowFiles of random data and is used for load testing") public class GenerateFlowFile extends AbstractProcessor
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptor |
BATCH_SIZE |
private AtomicReference<byte[]> |
data |
static PropertyDescriptor |
DATA_FORMAT |
static String |
DATA_FORMAT_BINARY |
static String |
DATA_FORMAT_TEXT |
private List<PropertyDescriptor> |
descriptors |
static PropertyDescriptor |
FILE_SIZE |
private Set<Relationship> |
relationships |
static Relationship |
SUCCESS |
private static char[] |
TEXT_CHARS |
static PropertyDescriptor |
UNIQUE_FLOWFILES |
Constructor and Description |
---|
GenerateFlowFile() |
Modifier and Type | Method and Description |
---|---|
private byte[] |
generateData(ProcessContext context) |
Set<Relationship> |
getRelationships() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ProcessorInitializationContext context) |
void |
onScheduled(ProcessContext context) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, initialize, isScheduled, toString, updateScheduledFalse, updateScheduledTrue
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
private final AtomicReference<byte[]> data
public static final String DATA_FORMAT_BINARY
public static final String DATA_FORMAT_TEXT
public static final PropertyDescriptor FILE_SIZE
public static final PropertyDescriptor BATCH_SIZE
public static final PropertyDescriptor DATA_FORMAT
public static final PropertyDescriptor UNIQUE_FLOWFILES
public static final Relationship SUCCESS
private List<PropertyDescriptor> descriptors
private Set<Relationship> relationships
private static final char[] TEXT_CHARS
protected void init(ProcessorInitializationContext context)
init
in class AbstractSessionFactoryProcessor
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
public Set<Relationship> getRelationships()
getRelationships
in interface Processor
getRelationships
in class AbstractSessionFactoryProcessor
@OnScheduled public void onScheduled(ProcessContext context)
private byte[] generateData(ProcessContext context)
public void onTrigger(ProcessContext context, ProcessSession session)
onTrigger
in class AbstractProcessor
Copyright © 2015 Apache NiFi Project. All rights reserved.