Class PersistentSampleManager
java.lang.Object
de.ppi.deepsampler.persistence.api.PersistentSampleManager
public class PersistentSampleManager
extends java.lang.Object
The
PersistentSampleManager is used to handle any provided SourceManager and to act
as a bridge between this manager and the DeepSampler repositories.-
Constructor Summary
Constructors Constructor Description PersistentSampleManager(SourceManager sourceManager) -
Method Summary
Modifier and Type Method Description PersistentSampleManageraddBeanExtension(BeanConverterExtension beanConverterExtension)Add aBeanConverterExtensionto the sample manager.PersistentSampleManageraddSource(SourceManager sourceManager)Add anotherSourceManagerto this builder.voidload()End of chain method: callSourceManager.load()on allSourceManagers and write all loaded samples to the DeepSampler repositories.voidrecordSamples()End of chain method: callSourceManager.save(Map, PersistentSamplerContext)on all addedSourceManagers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PersistentSampleManager
-
-
Method Details
-
addSource
Add anotherSourceManagerto this builder.- Parameters:
sourceManager- theSourceManager- Returns:
- this
-
addBeanExtension
Add aBeanConverterExtensionto the sample manager.- Parameters:
beanConverterExtension-BeanConverterExtension- Returns:
- this
-
recordSamples
public void recordSamples()End of chain method: callSourceManager.save(Map, PersistentSamplerContext)on all addedSourceManagers. -
load
public void load()End of chain method: callSourceManager.load()on allSourceManagers and write all loaded samples to the DeepSampler repositories.
-