Package org.infinispan.loaders.bdbje

Examples of org.infinispan.loaders.bdbje.BdbjeCacheStoreConfig


      return environmentPropertiesFile;
   }

   @Override
   public BdbjeCacheStoreConfig adapt() {
      BdbjeCacheStoreConfig config = new BdbjeCacheStoreConfig();

      LegacyConfigurationAdaptor.adapt(this, config);

      config.setCacheDbNamePrefix(cacheDbNamePrefix);
      config.setCatalogDbName(catalogDbName);
      config.setEnvironmentPropertiesFile(environmentPropertiesFile);
      config.setExpiryDbNamePrefix(expiryDbPrefix);
      config.setLocation(location);
      config.setLockAcquistionTimeout(lockAcquistionTimeout);
      config.setMaxTxRetries(maxTxRetries);

      return config;
   }
View Full Code Here


      assert store2.cacheDbNamePrefix().equals("myprefix");
      assert store2.catalogDbName().equals("mycatalog");
      assert store2.fetchPersistentState();
      assert store2.async().enabled();

      BdbjeCacheStoreConfig legacy = store.adapt();
      assert legacy.getLocation().equals("/tmp/bdbje");
      assert legacy.getCacheDbNamePrefix().equals("myprefix");
      assert legacy.getCatalogDbName().equals("mycatalog");
      assert legacy.isFetchPersistentState();
      assert legacy.getAsyncStoreConfig().isEnabled();
   }
View Full Code Here

TOP

Related Classes of org.infinispan.loaders.bdbje.BdbjeCacheStoreConfig

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.