@InputRequirement(value=INPUT_FORBIDDEN) @Tags(value={"FTP","get","retrieve","files","fetch","remote","ingest","source","input"}) @CapabilityDescription(value="Fetches files from an FTP Server and creates FlowFiles from them") @WritesAttribute(attribute="filename",description="The filename is set to the name of the file on the remote server") @WritesAttribute(attribute="path",description="The path is set to the path of the file\'s directory on the remote server. For example, if the <Remote Path> property is set to /tmp, files picked up from /tmp will have the path attribute set to /tmp. If the <Search Recursively> property is set to true and a file is picked up from /tmp/abc/1/2/3, then the path attribute will be set to /tmp/abc/1/2/3") @WritesAttribute(attribute="file.lastModifiedTime",description="The date and time that the source file was last modified") @WritesAttribute(attribute="file.lastAccessTime",description="The date and time that the file was last accessed. May not work on all file systems") @WritesAttribute(attribute="file.owner",description="The numeric owner id of the source file") @WritesAttribute(attribute="file.group",description="The numeric group id of the source file") @WritesAttribute(attribute="file.permissions",description="The read/write/execute permissions of the source file") @WritesAttribute(attribute="absolute.path",description="The full/absolute path from where a file was picked up. The current \'path\' attribute is still populated, but may be a relative path") @SeeAlso(value=PutFTP.class) public class GetFTP extends GetFileTransfer
| Modifier and Type | Field and Description |
|---|---|
private List<PropertyDescriptor> |
properties |
FILE_GROUP_ATTRIBUTE, FILE_LAST_MODIFY_TIME_ATTRIBUTE, FILE_MODIFY_DATE_ATTR_FORMAT, FILE_OWNER_ATTRIBUTE, FILE_PERMISSIONS_ATTRIBUTE, REL_SUCCESS| Constructor and Description |
|---|
GetFTP() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<ValidationResult> |
customValidate(ValidationContext validationContext) |
protected FileTransfer |
getFileTransfer(ProcessContext context) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ProcessorInitializationContext context) |
getAttributesFromFile, getRelationships, onScheduled, onTriggeronTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueequals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate List<PropertyDescriptor> properties
protected void init(ProcessorInitializationContext context)
init in class AbstractSessionFactoryProcessorprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentprotected FileTransfer getFileTransfer(ProcessContext context)
getFileTransfer in class GetFileTransferprotected Collection<ValidationResult> customValidate(ValidationContext validationContext)
customValidate in class AbstractConfigurableComponentCopyright © 2023 Apache NiFi Project. All rights reserved.