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 TypeMethodDescriptionvoid
boolean
long
getLastModificationTime
(String factBaseId, String buildArtifact, String tag, boolean snapshot) String[]
getStoredTags
(String factBaseId, String buildArtifact) loadFactBase
(String factBaseId, String buildArtifact, String tag, boolean snapshot) void
storeFactBase
(IFactBase factBase, boolean appendTag, boolean makeSnapshot) store factbase according to the factbase.buildartifact, id and tag
-
Constructor Details
-
CachedFactBaseRepository
-
-
Method Details
-
exists
- Specified by:
exists
in interfaceIFactBaseRepository
- Overrides:
exists
in classMemoryFactBaseRepository
-
getLastModificationTime
public long getLastModificationTime(String factBaseId, String buildArtifact, String tag, boolean snapshot) - Specified by:
getLastModificationTime
in interfaceIFactBaseRepository
- Overrides:
getLastModificationTime
in classMemoryFactBaseRepository
-
loadFactBase
public IFactBase loadFactBase(String factBaseId, String buildArtifact, String tag, boolean snapshot) throws IOException - Specified by:
loadFactBase
in interfaceIFactBaseRepository
- Overrides:
loadFactBase
in classMemoryFactBaseRepository
tag
- - 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:IFactBaseRepository
store factbase according to the factbase.buildartifact, id and tag- Specified by:
storeFactBase
in interfaceIFactBaseRepository
- Overrides:
storeFactBase
in classMemoryFactBaseRepository
- Throws:
IOException
-
getStoredTags
- Specified by:
getStoredTags
in interfaceIFactBaseRepository
- Overrides:
getStoredTags
in classMemoryFactBaseRepository
-
clearCache
public void clearCache()- Since:
- 3.3.1
-