public abstract class ModelStorage extends Object implements Serializable, Closeable
Modifier and Type | Class and Description |
---|---|
static class |
ModelStorage.Types |
Constructor and Description |
---|
ModelStorage() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Closes the connector and cleans things up
|
abstract void |
connect()
Connects to the storage destination, is supposed to be called
before every other operation.
|
abstract URI |
linkModelVersion(String fileId,
String sourceVersionId,
String targetVersionId)
Links the source Version to the target Version
(The target Version should exist already).
|
abstract URI |
storeModel(Change modelChange)
Puts a model into the storage system and returns the URI.
|
List<URI> |
storeModelChangeSet(ChangeSet changeSet)
Puts a whole ChangeSet of models into the storage system.
|
public abstract void connect() throws StorageException
StorageException
- the storage exceptionpublic abstract void close()
close
in interface Closeable
close
in interface AutoCloseable
public abstract URI storeModel(Change modelChange) throws StorageException
modelChange
- the model changeStorageException
- the storage exceptionpublic abstract URI linkModelVersion(String fileId, String sourceVersionId, String targetVersionId) throws StorageException
fileId
- the file idsourceVersionId
- the source version idtargetVersionId
- the target version idStorageException
- the storage exceptionpublic List<URI> storeModelChangeSet(ChangeSet changeSet) throws StorageException
changeSet
- the change setStorageException
- the storage exceptionCopyright © 2019 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.