Package com.yahoo.vespa.filedistribution
Class FileDownloader
java.lang.Object
com.yahoo.vespa.filedistribution.FileDownloader
- All Implemented Interfaces:
AutoCloseable
Handles downloads of files (file references only for now)
- Author:
- hmusum
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileDownloader
(com.yahoo.vespa.config.ConnectionPool connectionPool, com.yahoo.jrt.Supervisor supervisor, File downloadDirectory, Duration timeout, Duration sleepBetweenRetries, Set<FileReferenceData.CompressionType> acceptedCompressionTypes) FileDownloader
(com.yahoo.vespa.config.ConnectionPool connectionPool, com.yahoo.jrt.Supervisor supervisor, File downloadDirectory, Duration timeout, Set<FileReferenceData.CompressionType> acceptedCompressionTypes) FileDownloader
(com.yahoo.vespa.config.ConnectionPool connectionPool, com.yahoo.jrt.Supervisor supervisor, Duration timeout, Set<FileReferenceData.CompressionType> acceptedCompressionTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
com.yahoo.vespa.config.ConnectionPool
void
downloadIfNeeded
(FileReferenceDownload fileReferenceDownload) Start a download if needed, don't wait for resultstatic com.yahoo.vespa.config.ConnectionPool
getFile
(FileReferenceDownload fileReferenceDownload)
-
Field Details
-
defaultDownloadDirectory
-
-
Constructor Details
-
FileDownloader
public FileDownloader(com.yahoo.vespa.config.ConnectionPool connectionPool, com.yahoo.jrt.Supervisor supervisor, Duration timeout, Set<FileReferenceData.CompressionType> acceptedCompressionTypes) -
FileDownloader
public FileDownloader(com.yahoo.vespa.config.ConnectionPool connectionPool, com.yahoo.jrt.Supervisor supervisor, File downloadDirectory, Duration timeout, Set<FileReferenceData.CompressionType> acceptedCompressionTypes) -
FileDownloader
public FileDownloader(com.yahoo.vespa.config.ConnectionPool connectionPool, com.yahoo.jrt.Supervisor supervisor, File downloadDirectory, Duration timeout, Duration sleepBetweenRetries, Set<FileReferenceData.CompressionType> acceptedCompressionTypes)
-
-
Method Details
-
getFile
-
downloadStatus
-
connectionPool
public com.yahoo.vespa.config.ConnectionPool connectionPool() -
downloads
-
downloadIfNeeded
Start a download if needed, don't wait for result -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
emptyConnectionPool
public static com.yahoo.vespa.config.ConnectionPool emptyConnectionPool()
-