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 ubic.gemma.core.loader.util.fetcher.FtpArchiveFetcher
doDelete, expander
Fields inherited from class ubic.gemma.core.loader.util.fetcher.FtpFetcher
avoidDownload, ftpClient, netDataSourceUtil
Fields inherited from class ubic.gemma.core.loader.util.fetcher.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) void
void
Methods inherited from class ubic.gemma.core.loader.util.fetcher.FtpArchiveFetcher
cleanUp, doTask, initArchiveHandler, listFiles, setDeleteAfterUnpack, setExcludePattern, setForce, unPack
Methods inherited from class ubic.gemma.core.loader.util.fetcher.FtpFetcher
defineTask, fetch, getExpectedSize, getNetDataSourceUtil, setAvoidDownload
Methods inherited from class ubic.gemma.core.loader.util.fetcher.AbstractFetcher
fetchedFile, fetchedFile, getExistingFile, getLocalBasePath, isForce, mkdir, mkdir, setAllowUseExisting, waitForDownload
-
Constructor Details
-
DataFileFetcher
public DataFileFetcher()
-
-
Method Details
-
fetch
Description copied from interface:Fetcher
Fetch files according to the identifier provided.- Specified by:
fetch
in interfaceFetcher
- Overrides:
fetch
in classFtpFetcher
- Parameters:
identifier
- identifier- Returns:
- local files
-
formLocalFilePath
- Specified by:
formLocalFilePath
in classAbstractFetcher
-
formRemoteFilePath
- Specified by:
formRemoteFilePath
in classAbstractFetcher
- Parameters:
identifier
- - e.g. E-MEXP-955- Returns:
- remote file path
-
getMageMlFile
-
initConfig
public void initConfig()- Specified by:
initConfig
in classAbstractFetcher
-
setNetDataSourceUtil
public void setNetDataSourceUtil()- Specified by:
setNetDataSourceUtil
in classFtpFetcher
-