Class CachedFactBaseRepository
java.lang.Object
com.polarion.qcentre.factbase.serialization.MemoryFactBaseRepository
com.polarion.qcentre.factbase.serialization.CachedFactBaseRepository
- All Implemented Interfaces:
IFactBaseRepository
public class CachedFactBaseRepository
extends MemoryFactBaseRepository
implements IFactBaseRepository
Use this repository decorator in batch operations
Like new CachedFactBaseRepository(repository) , than the batch operation would load the factbase just ones
- Author:
- Jiri Walek
-
Field Summary
Fields inherited from interface com.polarion.qcentre.factbase.serialization.IFactBaseRepository
SNAPSHOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanlonggetLastModificationTime(String factBaseId, String buildArtifact, String tag, boolean snapshot) String[]getStoredTags(String factBaseId, String buildArtifact) loadFactBase(String factBaseId, String buildArtifact, String tag, boolean snapshot) voidstoreFactBase(IFactBase factBase, boolean appendTag, boolean makeSnapshot) store factbase according to the factbase.buildartifact, id and tag
-
Constructor Details
-
CachedFactBaseRepository
-
-
Method Details
-
exists
- Specified by:
existsin interfaceIFactBaseRepository- Overrides:
existsin classMemoryFactBaseRepository
-
getLastModificationTime
public long getLastModificationTime(String factBaseId, String buildArtifact, String tag, boolean snapshot) - Specified by:
getLastModificationTimein interfaceIFactBaseRepository- Overrides:
getLastModificationTimein classMemoryFactBaseRepository
-
loadFactBase
public IFactBase loadFactBase(String factBaseId, String buildArtifact, String tag, boolean snapshot) throws IOException - Specified by:
loadFactBasein interfaceIFactBaseRepository- Overrides:
loadFactBasein classMemoryFactBaseRepositorytag- - null if tag is ommited (appendTag was set to false by storeFactBase)snapshot- - if true use SNAPSHOT as tag- Returns:
- factbase
- Throws:
IOException
-
storeFactBase
public void storeFactBase(IFactBase factBase, boolean appendTag, boolean makeSnapshot) throws IOException Description copied from interface:IFactBaseRepositorystore factbase according to the factbase.buildartifact, id and tag- Specified by:
storeFactBasein interfaceIFactBaseRepository- Overrides:
storeFactBasein classMemoryFactBaseRepository- Throws:
IOException
-
getStoredTags
- Specified by:
getStoredTagsin interfaceIFactBaseRepository- Overrides:
getStoredTagsin classMemoryFactBaseRepository
-
clearCache
public void clearCache()- Since:
- 3.3.1
-