public class BioModelsDb extends ModelDatabase
ModelDatabase.DatabaseTypes
Modifier and Type | Field and Description |
---|---|
protected Map<String,ChangeSet> |
changeSetMap |
protected de.unirostock.sems.ModelCrawler.databases.BioModelsDb.BioModelsDb.WorkingDirConfig |
config |
enabled, limit, modelStorage, morreClient, tempDir
Constructor and Description |
---|
BioModelsDb()
Default empty constructor
|
Modifier and Type | Method and Description |
---|---|
Map<String,ChangeSet> |
call()
Starts the process of crawling for this specific Database.
|
void |
close()
Cleans up the working directory
|
protected void |
connect() |
protected void |
disconnect() |
URL |
getFtpUrl() |
ChangeSet |
getModelChanges(String fileId)
Returns the ChangeSet only for one specific model.
|
protected void |
init() |
Map<String,ChangeSet> |
listChanges()
Returns a map with all changes made after the last crawl
the fileId is the map key. |
List<String> |
listModels()
lists all Models in the latest revision
|
protected void |
processRelease(BioModelRelease release)
Downloads, extracts and indexes the gives release
must called for each new release CHRONOLOGICAL.
|
protected List<BioModelRelease> |
retrieveReleaseList() |
protected void |
saveProperties() |
void |
setFtpUrl(URL ftpUrl) |
createTempDir, getLimit, getModelStorage, getMorreClient, getWorkingDir, isEnabled, obtainWorkingDir, setEnabled, setLimit, setModelStorage, setMorreClient, setWorkingDir
protected de.unirostock.sems.ModelCrawler.databases.BioModelsDb.BioModelsDb.WorkingDirConfig config
public List<String> listModels()
ModelDatabase
listModels
in class ModelDatabase
public Map<String,ChangeSet> listChanges()
ModelDatabase
listChanges
in class ModelDatabase
public ChangeSet getModelChanges(String fileId)
ModelDatabase
getModelChanges
in class ModelDatabase
fileId
- the file idpublic void close()
ModelDatabase
close
in interface Closeable
close
in interface AutoCloseable
close
in class ModelDatabase
public Map<String,ChangeSet> call()
ModelDatabase
protected void processRelease(BioModelRelease release)
release
- the releaseprotected void init()
protected void saveProperties()
protected void connect() throws FtpConnectionException, IOException, SocketException
protected void disconnect()
protected List<BioModelRelease> retrieveReleaseList() throws IOException
IOException
public URL getFtpUrl()
public void setFtpUrl(URL ftpUrl)
Copyright © 2019 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.