Class FileDownloader

java.lang.Object
com.yahoo.vespa.filedistribution.FileDownloader
All Implemented Interfaces:
AutoCloseable

public class FileDownloader extends Object implements AutoCloseable
Handles downloads of files (file references only for now)
Author:
hmusum
  • Field Details

    • defaultDownloadDirectory

      public static final File defaultDownloadDirectory
  • Constructor Details

  • Method Details

    • getFile

      public Optional<File> getFile(FileReferenceDownload fileReferenceDownload)
    • downloadStatus

      public Map<com.yahoo.config.FileReference,Double> downloadStatus()
    • connectionPool

      public com.yahoo.vespa.config.ConnectionPool connectionPool()
    • downloads

      public Downloads downloads()
    • downloadIfNeeded

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

      public void close()
      Specified by:
      close in interface AutoCloseable
    • emptyConnectionPool

      public static com.yahoo.vespa.config.ConnectionPool emptyConnectionPool()