@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, onTriggeronTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueequals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class FetchFileTransferprotected FileTransfer createFileTransfer(ProcessContext context)
FetchFileTransfercreateFileTransfer in class FetchFileTransfercontext - the ProcessContext to use in order to obtain configured propertiesprotected Collection<ValidationResult> customValidate(ValidationContext validationContext)
customValidate in class AbstractConfigurableComponentCopyright © 2023 Apache NiFi Project. All rights reserved.