Class FtpFetcher

    • Field Detail

      • ftpClient

        protected org.apache.commons.net.ftp.FTPClient ftpClient
      • avoidDownload

        protected boolean avoidDownload
    • Constructor Detail

      • FtpFetcher

        public FtpFetcher()
    • Method Detail

      • fetch

        public Collection<LocalFile> fetch​(String identifier)
        Description copied from interface: Fetcher
        Fetch files according to the identifier provided.
        Parameters:
        identifier - identifier
        Returns:
        local files
      • getNetDataSourceUtil

        public NetDatasourceUtil getNetDataSourceUtil()
        Returns:
        the netDataSourceUtil
      • setAvoidDownload

        public void setAvoidDownload​(boolean avoidDownload)
        Parameters:
        avoidDownload - Set to true to avoid download if possible and simply use existing files if they are available. This skips the usual checks for the correct file size compared to the remote one. Not all fetchers support setting this to 'true'.
      • setNetDataSourceUtil

        public abstract void setNetDataSourceUtil()