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, setWorkingDirprotected de.unirostock.sems.ModelCrawler.databases.BioModelsDb.BioModelsDb.WorkingDirConfig config
public List<String> listModels()
ModelDatabaselistModels in class ModelDatabasepublic Map<String,ChangeSet> listChanges()
ModelDatabaselistChanges in class ModelDatabasepublic ChangeSet getModelChanges(String fileId)
ModelDatabasegetModelChanges in class ModelDatabasefileId - the file idpublic void close()
ModelDatabaseclose in interface Closeableclose in interface AutoCloseableclose in class ModelDatabasepublic Map<String,ChangeSet> call()
ModelDatabaseprotected 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
IOExceptionpublic URL getFtpUrl()
public void setFtpUrl(URL ftpUrl)
Copyright © 2019 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.