public class FileSystemStorage extends Object implements StorageBackend
Constructor and Description |
---|
FileSystemStorage() |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(String modelId,
String versionId)
Checks if the specific model exists in the backend storage
|
InputStream |
getModel(String modelId,
String versionId)
Gets a model from the backend storage
|
void |
setModel(String modelId,
String versionId,
InputStream modelData)
Puts a model into the backend storage
|
public InputStream getModel(String modelId, String versionId) throws UnknownModelVersionException, UnknownModelException
StorageBackend
getModel
in interface StorageBackend
UnknownModelVersionException
UnknownModelException
public void setModel(String modelId, String versionId, InputStream modelData) throws ModelAlreadyExistsException, IOException
StorageBackend
setModel
in interface StorageBackend
modelData
- as InputStreamModelAlreadyExistsException
IOException
public boolean exists(String modelId, String versionId)
StorageBackend
exists
in interface StorageBackend
Copyright © 2013 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.