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
public class DataFileFetcher extends FtpArchiveFetcher
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 Constructor Description DataFileFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<LocalFile>fetch(String identifier)Fetch files according to the identifier provided.StringformLocalFilePath(String identifier, File newDir)StringformRemoteFilePath(String identifier)LocalFilegetMageMlFile(Collection<LocalFile> files)voidinitConfig()voidsetNetDataSourceUtil()-
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, waitForDownload
-
-
-
-
Method Detail
-
fetch
public Collection<LocalFile> fetch(String identifier)
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
public String formLocalFilePath(String identifier, File newDir)
- Specified by:
formLocalFilePathin classAbstractFetcher
-
formRemoteFilePath
public String formRemoteFilePath(String identifier)
- Specified by:
formRemoteFilePathin classAbstractFetcher- Parameters:
identifier- - e.g. E-MEXP-955- Returns:
- remote file path
-
getMageMlFile
public LocalFile getMageMlFile(Collection<LocalFile> files)
-
initConfig
public void initConfig()
- Specified by:
initConfigin classAbstractFetcher
-
setNetDataSourceUtil
public void setNetDataSourceUtil()
- Specified by:
setNetDataSourceUtilin classFtpFetcher
-
-