public CacheStore getCacheStoreForRehashing() {
   if (cacheLoaderManager == null
       || !cacheLoaderManager.isEnabled()
       || cacheLoaderManager.isShared()) return null;
   return cacheLoaderManager.getCacheStore();
 }
Ejemplo n.º 2
0
 /**
  * Obtains the CacheStore that will be used for purging segments that are no longer owned by this
  * node. The CacheStore will be purged only if it is enabled and it is not shared.
  */
 private CacheStore getCacheStore() {
   if (cacheLoaderManager.isEnabled() && !cacheLoaderManager.isShared()) {
     return cacheLoaderManager.getCacheStore();
   }
   return null;
 }