public abstract class ModelDatabase extends Object implements Callable<Map<String,ChangeSet>>, Closeable, Serializable
Modifier and Type | Class and Description |
---|---|
class |
ModelDatabase.DatabaseTypes |
Modifier and Type | Field and Description |
---|---|
protected boolean |
enabled |
protected int |
limit |
protected ModelStorage |
modelStorage |
protected de.unirostock.sems.morre.client.MorreCrawlerInterface |
morreClient |
protected File |
tempDir |
Constructor and Description |
---|
ModelDatabase() |
Modifier and Type | Method and Description |
---|---|
abstract Map<String,ChangeSet> |
call()
Starts the process of crawling for this specific Database.
|
abstract void |
close()
Cleans up the working directory
|
protected File |
createTempDir()
creates a new and empty temporary directory and sets the class variable.
|
int |
getLimit() |
abstract ChangeSet |
getModelChanges(String fileId)
Returns the ChangeSet only for one specific model.
|
ModelStorage |
getModelStorage() |
de.unirostock.sems.morre.client.MorreCrawlerInterface |
getMorreClient() |
String |
getWorkingDir() |
boolean |
isEnabled() |
abstract Map<String,ChangeSet> |
listChanges()
Returns a map with all changes made after the last crawl
the fileId is the map key. |
abstract List<String> |
listModels()
lists all Models in the latest revision
|
protected File |
obtainWorkingDir() |
void |
setEnabled(boolean enabled) |
void |
setLimit(int limit) |
void |
setModelStorage(ModelStorage modelStorage) |
void |
setMorreClient(de.unirostock.sems.morre.client.MorreCrawlerInterface morreClient) |
void |
setWorkingDir(String workingDir) |
protected boolean enabled
protected int limit
protected File tempDir
protected de.unirostock.sems.morre.client.MorreCrawlerInterface morreClient
protected ModelStorage modelStorage
protected File createTempDir()
public abstract List<String> listModels()
public abstract Map<String,ChangeSet> listChanges()
public abstract ChangeSet getModelChanges(String fileId)
fileId
- the file idpublic abstract void close()
close
in interface Closeable
close
in interface AutoCloseable
public abstract Map<String,ChangeSet> call()
public String getWorkingDir()
protected File obtainWorkingDir()
public void setWorkingDir(String workingDir)
public int getLimit()
public void setLimit(int limit)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public de.unirostock.sems.morre.client.MorreCrawlerInterface getMorreClient()
public void setMorreClient(de.unirostock.sems.morre.client.MorreCrawlerInterface morreClient)
public ModelStorage getModelStorage()
public void setModelStorage(ModelStorage modelStorage)
Copyright © 2019 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.