Class DataFileFetcher
java.lang.Object
ubic.gemma.core.loader.util.fetcher.AbstractFetcher
ubic.gemma.core.loader.util.fetcher.FtpFetcher
ubic.gemma.core.loader.util.fetcher.FtpArchiveFetcher
ubic.gemma.core.loader.expression.arrayExpress.DataFileFetcher
- All Implemented Interfaces:
ArchiveFetcher, Fetcher
ArrayExpress stores files in an FTP site as tarred-gzipped archives. Each tar file contains the MAGE file and the
datacube external files. This class can download an experiment, unpack the tar file, and put the resulting files onto
a local filesystem.
- Author:
- pavlidis
-
Field Summary
Fields inherited from class FtpArchiveFetcher
doDelete, expanderFields inherited from class FtpFetcher
avoidDownload, ftpClient, netDataSourceUtilFields inherited from class AbstractFetcher
allowUseExisting, force, INFO_UPDATE_INTERVAL, localBasePath, log, remoteBaseDir -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFetch files according to the identifier provided.formLocalFilePath(String identifier, File newDir) formRemoteFilePath(String identifier) getMageMlFile(Collection<File> files) voidvoidMethods inherited from class FtpArchiveFetcher
cleanUp, doTask, initArchiveHandler, listFiles, setDeleteAfterUnpack, setExcludePattern, setForce, unPackMethods inherited from class FtpFetcher
defineTask, fetch, getExpectedSize, getNetDataSourceUtil, setAvoidDownloadMethods inherited from class AbstractFetcher
fetchedFile, fetchedFile, getExistingFile, getLocalBasePath, isForce, mkdir, mkdir, setAllowUseExisting, waitForDownload
-
Constructor Details
-
DataFileFetcher
public DataFileFetcher()
-
-
Method Details
-
fetch
Description copied from interface:FetcherFetch files according to the identifier provided.- Specified by:
fetchin interfaceFetcher- Overrides:
fetchin classFtpFetcher- Parameters:
identifier- identifier- Returns:
- local files
-
formLocalFilePath
- Specified by:
formLocalFilePathin classAbstractFetcher
-
formRemoteFilePath
- Specified by:
formRemoteFilePathin classAbstractFetcher- Parameters:
identifier- - e.g. E-MEXP-955- Returns:
- remote file path
-
getMageMlFile
-
initConfig
public void initConfig()- Specified by:
initConfigin classAbstractFetcher
-
setNetDataSourceUtil
public void setNetDataSourceUtil()- Specified by:
setNetDataSourceUtilin classFtpFetcher
-