Class FSComponentRepositoryHelper<DB extends FSComponentExtRepositoryDB<? extends FSCRDBComponent>>
java.lang.Object
com.zfabrik.components.provider.util.FSComponentRepositoryHelper<DB>
public class FSComponentRepositoryHelper<DB extends FSComponentExtRepositoryDB<? extends FSCRDBComponent>>
extends Object
General repo implementation helper class.
Can be forced to purge repo cache on init by
setting the system prop
com.zfabrik.cr.purge
- Author:
- hb
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFSComponentRepositoryHelper
(Class<DB> clz, File root) Compatibility constructor with empty check properties.FSComponentRepositoryHelper
(Class<DB> clz, File root, Properties checkProps) Initialize a repo helper with a specific DB class, a local store folder and a set of check props that are to be found again to validate the repository storage. -
Method Summary
Modifier and TypeMethodDescriptionvoid
evictLocalComponent
(String name) getComponentRIFolder
(String name) lockComponent
(String component) lockDB()
readDB()
void
void
setEvictionDelay
(long evictionDelay)
-
Field Details
-
DEF_EVICTION_DELAY
public static final long DEF_EVICTION_DELAY- See Also:
-
-
Constructor Details
-
FSComponentRepositoryHelper
Compatibility constructor with empty check properties. -
FSComponentRepositoryHelper
Initialize a repo helper with a specific DB class, a local store folder and a set of check props that are to be found again to validate the repository storage. If the latter check fails, local repository content will be evicted.
-
-
Method Details
-
setEvictionDelay
public void setEvictionDelay(long evictionDelay) -
lockDB
- Throws:
IOException
-
lockComponent
- Throws:
IOException
-
getComponentFolder
-
getComponentRIFolder
-
evictLocalComponent
- Throws:
IOException
-
readDB
- Throws:
IOException
-
saveDB
- Throws:
IOException
-