Interface SourceManager
public interface SourceManager
A SourceManager is responsible for interacting with the actual persistent source.
When implementing you have to define two methods:- save(...): Basically you have to write the provided data to your data source. There is no constraint on how you do it, but you should write it in a form so that you are able to load it correctly again.
- load(...): Load your data and transform your data to an implementation of
PersistentModel
-
Method Summary
Modifier and Type Method Description PersistentModelload()Load the persistent data.voidsave(java.util.Map<java.lang.Class<?>,de.ppi.deepsampler.core.model.ExecutionInformation> executionInformation, PersistentSamplerContext persistentSamplerContext)Save the executionInformation collected on runtime to your data source.
-
Method Details
-
save
void save(java.util.Map<java.lang.Class<?>,de.ppi.deepsampler.core.model.ExecutionInformation> executionInformation, PersistentSamplerContext persistentSamplerContext)Save the executionInformation collected on runtime to your data source.- Parameters:
executionInformation- the executionInformation mapped by classpersistentSamplerContext- context of the persistent sampler
-
load
PersistentModel load()Load the persistent data. You will also have to transform this (if not already happened by design) to an implementation ofPersistentModeland its subordinated interfaces.- Returns:
- PersistentModel
-