@InputRequirement(value=INPUT_REQUIRED) @Tags(value={"ftp","get","retrieve","files","fetch","remote","ingest","source","input"}) @CapabilityDescription(value="Fetches the content of a file from a remote FTP server and overwrites the contents of an incoming FlowFile with the content of the remote file.") @SeeAlso(value={GetSFTP.class,PutSFTP.class,GetFTP.class,PutFTP.class}) @WritesAttribute(attribute="ftp.remote.host",description="The hostname or IP address from which the file was pulled") @WritesAttribute(attribute="ftp.remote.port",description="The port that was used to communicate with the remote FTP server") @WritesAttribute(attribute="ftp.remote.filename",description="The name of the remote file that was pulled") @WritesAttribute(attribute="filename",description="The filename is updated to point to the filename fo the remote file") @WritesAttribute(attribute="path",description="If the Remote File contains a directory name, that directory name will be added to the FlowFile using the \'path\' attribute") public class FetchFTP extends FetchFileTransfer
COMPLETION_DELETE, COMPLETION_MOVE, COMPLETION_NONE, COMPLETION_STRATEGY, FILE_NOT_FOUND_LOG_LEVEL, HOSTNAME, MOVE_CREATE_DIRECTORY, MOVE_DESTINATION_DIR, REL_COMMS_FAILURE, REL_NOT_FOUND, REL_PERMISSION_DENIED, REL_SUCCESS, REMOTE_FILENAME, UNDEFAULTED_PORT, USERNAME
Constructor and Description |
---|
FetchFTP() |
Modifier and Type | Method and Description |
---|---|
protected FileTransfer |
createFileTransfer(ProcessContext context)
Creates a new instance of a FileTransfer that can be used to pull files from a remote system.
|
protected Collection<ValidationResult> |
customValidate(ValidationContext validationContext) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
cleanup, getRelationships, onScheduled, onTrigger
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, 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
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class FetchFileTransfer
protected FileTransfer createFileTransfer(ProcessContext context)
FetchFileTransfer
createFileTransfer
in class FetchFileTransfer
context
- the ProcessContext to use in order to obtain configured propertiesprotected Collection<ValidationResult> customValidate(ValidationContext validationContext)
customValidate
in class AbstractConfigurableComponent
Copyright © 2021 Apache NiFi Project. All rights reserved.