vfs: use jsr-107 based caches for attribute/lookup caching
Motivation: jsr-107 defines standard API to to define and access caches. In theory, it allows to use java-spi based mechanism to select an appropriate caching implementation. As a transition phase to full spi based deployment we can use jcache API to access the cache, but still use cache implementation native initialization. Modification: replace guava based caches with Hazelcast, which is initialized through JCache interface. I native Hazelcast extention is used to initialize cache size and object format. The GuavaCacheMXBeanImpl is not used any more, as backend implementation should provide similar functionality. A classes involved in caching as keys or values updated to implement Serializable to work with persistent caches. Result: - theoretical: a possibility to choose a different caching implementations - practical: a playground to achieve theoretical goal Acked-by: Target: master Require-book: no Require-notes: yes
Showing
- core/pom.xml 8 additions, 0 deletionscore/pom.xml
- core/src/main/java/org/dcache/nfs/vfs/FileHandle.java 4 additions, 1 deletioncore/src/main/java/org/dcache/nfs/vfs/FileHandle.java
- core/src/main/java/org/dcache/nfs/vfs/Inode.java 4 additions, 1 deletioncore/src/main/java/org/dcache/nfs/vfs/Inode.java
- core/src/main/java/org/dcache/nfs/vfs/VfsCache.java 237 additions, 55 deletionscore/src/main/java/org/dcache/nfs/vfs/VfsCache.java
- pom.xml 10 additions, 0 deletionspom.xml
Please register or sign in to comment