Class GetFileResource
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.standard.GetFileResource
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.processor.Processor
@Tags({"test","file","generate","load"})
@InputRequirement(INPUT_FORBIDDEN)
@CapabilityDescription("This processor creates FlowFiles with the content of the configured File Resource. GetFileResource\nis useful for load testing, configuration, and simulation.\n")
@DynamicProperty(name="Generated FlowFile attribute name",
value="Generated FlowFile attribute value",
expressionLanguageScope=ENVIRONMENT,
description="Specifies an attribute on generated FlowFiles defined by the Dynamic Property\'s key and value.")
@WritesAttribute(attribute="mime.type",description="Sets the MIME type of the output if the \'MIME Type\' property is set") @WritesAttribute(attribute="Dynamic property key",description="Value for the corresponding dynamic property, if any is set")
@DefaultSchedule(strategy=TIMER_DRIVEN,
period="1 min")
@Restriction(requiredPermission=READ_FILESYSTEM,explanation="Provides operator the ability to read from any file that NiFi has access to.") @Restriction(requiredPermission=REFERENCE_REMOTE_RESOURCES,explanation="File Resource can reference resources over HTTP/HTTPS")
public class GetFileResource
extends org.apache.nifi.processor.AbstractProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorprivate static final List<org.apache.nifi.components.PropertyDescriptor> private static final Set<org.apache.nifi.processor.Relationship> static final org.apache.nifi.processor.Relationship -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.nifi.processor.Relationship> protected org.apache.nifi.components.PropertyDescriptorgetSupportedDynamicPropertyDescriptor(String propertyDescriptorName) protected List<org.apache.nifi.components.PropertyDescriptor> voidonTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session) Methods inherited from class org.apache.nifi.processor.AbstractProcessor
onTriggerMethods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateProperties, migrateRelationships
-
Field Details
-
FILE_RESOURCE
public static final org.apache.nifi.components.PropertyDescriptor FILE_RESOURCE -
MIME_TYPE
public static final org.apache.nifi.components.PropertyDescriptor MIME_TYPE -
PROPERTY_DESCRIPTORS
-
SUCCESS
public static final org.apache.nifi.processor.Relationship SUCCESS -
RELATIONSHIPS
-
-
Constructor Details
-
GetFileResource
public GetFileResource()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classorg.apache.nifi.components.AbstractConfigurableComponent
-
getSupportedDynamicPropertyDescriptor
protected org.apache.nifi.components.PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) - Overrides:
getSupportedDynamicPropertyDescriptorin classorg.apache.nifi.components.AbstractConfigurableComponent
-
getRelationships
- Specified by:
getRelationshipsin interfaceorg.apache.nifi.processor.Processor- Overrides:
getRelationshipsin classorg.apache.nifi.processor.AbstractSessionFactoryProcessor
-
onTrigger
public void onTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session) - Specified by:
onTriggerin classorg.apache.nifi.processor.AbstractProcessor
-