Class AbstractFetcher
java.lang.Object
ubic.gemma.core.loader.util.fetcher2.AbstractFetcher
- Direct Known Subclasses:
CellXGeneFetcher,GeoFetcher
Base class for fetchers that provide data downloading, file locking, progress reporting, logging and parallel task
execution capabilities.
- Author:
- poirigui
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.Logprotected final SimpleDownloader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetFileLockManager(FileLockManager fileLockManager) Set the file lock manager to use for managing locks on downloaded files.voidsetFtpClientFactory(FTPClientFactory ftpClientFactory) Set the FTP client factory to use for downloading files over FTP.voidsetProgressReporterFactory(ProgressReporterFactory progressReporterFactory) Set the progress reporter factory to use for reporting download progress.voidsetTaskExecutor(ExecutorService taskExecutor) Set the task executor for parallel downloads.
-
Field Details
-
log
protected final org.apache.commons.logging.Log log -
simpleDownloader
-
-
Constructor Details
-
AbstractFetcher
-
-
Method Details
-
setFtpClientFactory
Set the FTP client factory to use for downloading files over FTP.- See Also:
-
setFileLockManager
Set the file lock manager to use for managing locks on downloaded files.- See Also:
-
setProgressReporterFactory
Set the progress reporter factory to use for reporting download progress.- See Also:
-
setTaskExecutor
Set the task executor for parallel downloads.- See Also:
-