@InputRequirement(value=INPUT_FORBIDDEN) @Tags(value={"sftp","get","retrieve","files","fetch","remote","ingest","source","input"}) @CapabilityDescription(value="Fetches files from an SFTP 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.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=PutSFTP.class) public class GetSFTP 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 |
---|
GetSFTP() |
Modifier and Type | Method and Description |
---|---|
protected Collection<ValidationResult> |
customValidate(ValidationContext context) |
protected FileTransfer |
getFileTransfer(ProcessContext context) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ProcessorInitializationContext context) |
getAttributesFromFile, getRelationships, onScheduled, onTrigger
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
private List<PropertyDescriptor> properties
protected void init(ProcessorInitializationContext context)
init
in class AbstractSessionFactoryProcessor
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
protected Collection<ValidationResult> customValidate(ValidationContext context)
customValidate
in class AbstractConfigurableComponent
protected FileTransfer getFileTransfer(ProcessContext context)
getFileTransfer
in class GetFileTransfer
Copyright © 2020 Apache NiFi Project. All rights reserved.