Class FileDownloader


  • public class FileDownloader
    extends java.lang.Object
    Handles downloads of files (file references only for now)
    Author:
    hmusum
    • Field Detail

      • defaultDownloadDirectory

        public static java.io.File defaultDownloadDirectory
    • Constructor Detail

      • FileDownloader

        public FileDownloader​(com.yahoo.vespa.config.ConnectionPool connectionPool)
    • Method Detail

      • getFile

        public java.util.Optional<java.io.File> getFile​(com.yahoo.config.FileReference fileReference)
      • getFile

        public java.util.Optional<java.io.File> getFile​(FileReferenceDownload fileReferenceDownload)
      • downloadStatus

        public java.util.Map<com.yahoo.config.FileReference,​java.lang.Double> downloadStatus()
      • downloadIfNeeded

        public void downloadIfNeeded​(FileReferenceDownload fileReferenceDownload)
        Start a download, don't wait for result
      • close

        public void close()