Class GetSFTP
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processor.util.file.transfer.GetFileTransfer
org.apache.nifi.processors.standard.GetSFTP
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.processor.Processor
@InputRequirement(INPUT_FORBIDDEN)
@Tags({"sftp","get","retrieve","files","fetch","remote","ingest","source","input"})
@CapabilityDescription("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(PutSFTP.class)
public class GetSFTP
extends GetFileTransfer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final List<org.apache.nifi.components.PropertyDescriptor> Fields inherited from class org.apache.nifi.processor.util.file.transfer.GetFileTransfer
DATE_TIME_FORMATTER, FILE_GROUP_ATTRIBUTE, FILE_LAST_MODIFY_TIME_ATTRIBUTE, FILE_MODIFY_DATE_ATTR_FORMAT, FILE_OWNER_ATTRIBUTE, FILE_PERMISSIONS_ATTRIBUTE, FILE_SIZE_ATTRIBUTE, REL_SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<org.apache.nifi.components.ValidationResult> customValidate(org.apache.nifi.components.ValidationContext context) protected FileTransfergetFileTransfer(org.apache.nifi.processor.ProcessContext context) protected List<org.apache.nifi.components.PropertyDescriptor> voidMethods inherited from class org.apache.nifi.processor.util.file.transfer.GetFileTransfer
getAttributesFromFile, getRelationships, onScheduled, onTriggerMethods 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
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, 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, migrateRelationships
-
Field Details
-
PROPERTY_DESCRIPTORS
-
-
Constructor Details
-
GetSFTP
public GetSFTP()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classorg.apache.nifi.components.AbstractConfigurableComponent
-
migrateProperties
-
customValidate
protected Collection<org.apache.nifi.components.ValidationResult> customValidate(org.apache.nifi.components.ValidationContext context) - Overrides:
customValidatein classorg.apache.nifi.components.AbstractConfigurableComponent
-
getFileTransfer
- Specified by:
getFileTransferin classGetFileTransfer
-