public class ModelStoreManager extends Object
| Constructor and Description |
|---|
ModelStoreManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the stored model.
|
Map<String,Model> |
loadLastModels()
Load the last saved model.
|
List<Model> |
loadModels(long startTime,
long endTime,
String runtime)
Load a list of models stored within a given time period.
|
void |
storeCurrentModel()
Store the current model in the Model Manager.
|
void |
storeModel(Map<String,Model> models)
Persist a particular model.
|
public Map<String,Model> loadLastModels() throws GraphStoreException
GraphStoreException - If loading the model failedpublic List<Model> loadModels(long startTime, long endTime, String runtime) throws GraphStoreException
startTime - The start of the time periodendTime - The end of the time periodruntime - The runtime of which the models should be fetchedGraphStoreException - If loading the model failedpublic void storeModel(Map<String,Model> models) throws GraphStoreException
models - The runtime models to be savedGraphStoreException - If storing the model failedpublic void storeCurrentModel()
throws GraphStoreException
GraphStoreException - If a failure occurs while storingpublic void clear()
throws GraphStoreException
GraphStoreExceptionCopyright © 2019 WSO2. All rights reserved.