Package org.jboss.cache.loader

Examples of org.jboss.cache.loader.FileCacheLoaderConfig


      BuddyReplicationTestsBase.waitForSingleBuddy(createdCaches);
   }

   protected void amendCacheBeforeStartup(Cache<Object, Object> cache)
   {
      FileCacheLoaderConfig config = (FileCacheLoaderConfig) cache.getConfiguration().getCacheLoaderConfig().getFirstCacheLoaderConfig();
      config.setLocation(FILE_CL_ROOT_DIR + "/session" + FOLDER_INDEX ++);
   }
View Full Code Here


      if (passivationDir != null)
      {
         CacheLoaderConfig clc = new CacheLoaderConfig();
         clc.setPassivation(true);
         clc.setShared(false);
         FileCacheLoaderConfig fclc = new FileCacheLoaderConfig();
         fclc.setLocation(passivationDir);
         fclc.setFetchPersistentState(true);
         fclc.setPurgeOnStartup(purgeCacheLoader);
         fclc.setAsync(false);
         fclc.setIgnoreModifications(false);
         ArrayList<IndividualCacheLoaderConfig> iclcs = new ArrayList<IndividualCacheLoaderConfig>();
         iclcs.add(fclc);
         clc.setIndividualCacheLoaderConfigs(iclcs);
        
         config.setCacheLoaderConfig(clc);
View Full Code Here

      config.setEvictionConfig(ec);

      CacheLoaderConfig clc = new CacheLoaderConfig();
      clc.setPassivation(true);
      clc.setShared(false);
      FileCacheLoaderConfig fclc = new FileCacheLoaderConfig();
      fclc.setLocation(tmpDir);

      clc.setIndividualCacheLoaderConfigs(Collections.<IndividualCacheLoaderConfig>singletonList(fclc));
      config.setCacheLoaderConfig(clc);

      return cache;
View Full Code Here

         config.setCacheLoaderConfig(null);
      }
      else
      {
         CacheLoaderConfig clc = config.getCacheLoaderConfig();
         FileCacheLoaderConfig fclc = new FileCacheLoaderConfig();
         fclc.setProperties(clc.getFirstCacheLoaderConfig().getProperties());
         fclc.setLocation(passivationDir);
         fclc.setFetchPersistentState(true);
         ArrayList<IndividualCacheLoaderConfig> iclcs = new ArrayList<IndividualCacheLoaderConfig>();
         iclcs.add(fclc);
         clc.setIndividualCacheLoaderConfigs(iclcs);
      }
     
View Full Code Here

      config.setEvictionConfig(ec);

      CacheLoaderConfig clc = new CacheLoaderConfig();
      clc.setPassivation(true);
      clc.setShared(false);
      FileCacheLoaderConfig fclc = new FileCacheLoaderConfig();
      fclc.setLocation(tmpDir);

      clc.setIndividualCacheLoaderConfigs(Collections.<IndividualCacheLoaderConfig>singletonList(fclc));
      config.setCacheLoaderConfig(clc);

      return cache;
View Full Code Here

      if (passivationDir != null)
      {
         CacheLoaderConfig clc = new CacheLoaderConfig();
         clc.setPassivation(true);
         clc.setShared(false);
         FileCacheLoaderConfig fclc = new FileCacheLoaderConfig();
         fclc.setLocation(passivationDir);
         fclc.setFetchPersistentState(true);
         fclc.setPurgeOnStartup(purgeCacheLoader);
         fclc.setAsync(false);
         fclc.setIgnoreModifications(false);
         ArrayList<IndividualCacheLoaderConfig> iclcs = new ArrayList<IndividualCacheLoaderConfig>();
         iclcs.add(fclc);
         clc.setIndividualCacheLoaderConfigs(iclcs);
        
         config.setCacheLoaderConfig(clc);
View Full Code Here

      config.setEvictionConfig(ec);

      CacheLoaderConfig clc = new CacheLoaderConfig();
      clc.setPassivation(true);
      clc.setShared(false);
      FileCacheLoaderConfig fclc = new FileCacheLoaderConfig();
      fclc.setLocation(tmpDir);

      clc.setIndividualCacheLoaderConfigs(Collections.<IndividualCacheLoaderConfig>singletonList(fclc));
      config.setCacheLoaderConfig(clc);

      return cache;
View Full Code Here

      if (passivationDir != null)
      {
         CacheLoaderConfig clc = new CacheLoaderConfig();
         clc.setPassivation(true);
         clc.setShared(false);
         FileCacheLoaderConfig fclc = new FileCacheLoaderConfig();
         fclc.setLocation(passivationDir);
         fclc.setFetchPersistentState(true);
         fclc.setPurgeOnStartup(purgeCacheLoader);
         fclc.setAsync(false);
         fclc.setIgnoreModifications(false);
         ArrayList<IndividualCacheLoaderConfig> iclcs = new ArrayList<IndividualCacheLoaderConfig>();
         iclcs.add(fclc);
         clc.setIndividualCacheLoaderConfigs(iclcs);
        
         config.setCacheLoaderConfig(clc);
View Full Code Here

TOP

Related Classes of org.jboss.cache.loader.FileCacheLoaderConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.