Examples of fetchPersistentState()


Examples of org.infinispan.compatibility.adaptor52x.Adaptor52xStoreConfigurationBuilder.fetchPersistentState()

            parseStoreChildren(reader, fcscb, builder.persistence());
         } else if (loader instanceof CacheStore) {
            Adaptor52xStoreConfigurationBuilder scb = builder.persistence().addStore(Adaptor52xStoreConfigurationBuilder.class);
            scb.loader((org.infinispan.loaders.CacheLoader) loader);
            if (fetchPersistentState != null)
               scb.fetchPersistentState(fetchPersistentState);
            if (ignoreModifications != null)
               scb.ignoreModifications(ignoreModifications);
            parseStoreChildren(reader, scb, builder.persistence());
         } else if (loader instanceof ClusterLoader) {
            ClusterLoaderConfigurationBuilder cclb = builder.persistence().addClusterLoader();
View Full Code Here

Examples of org.infinispan.compatibility.adaptor52x.Adaptor52xStoreConfigurationBuilder.fetchPersistentState()

            parseLoaderChildren(reader, cclb);
         } else if (loader instanceof CacheLoader) {
            Adaptor52xStoreConfigurationBuilder scb = builder.persistence().addStore(Adaptor52xStoreConfigurationBuilder.class);
            scb.loader((org.infinispan.loaders.CacheLoader) loader);
            if (fetchPersistentState != null)
               scb.fetchPersistentState(fetchPersistentState);
            if (ignoreModifications != null)
               scb.ignoreModifications(ignoreModifications);
            parseStoreChildren(reader, scb, builder.persistence());
         } else {
            throw log.invalidCacheLoaderClass(loader.getClass().getName());
View Full Code Here

Examples of org.infinispan.compatibility.adaptor52x.Adaptor52xStoreConfigurationBuilder.fetchPersistentState()

            parseStoreChildren(reader, fcscb, builder.persistence());
         } else if (loader instanceof CacheStore) {
            Adaptor52xStoreConfigurationBuilder scb = builder.persistence().addStore(Adaptor52xStoreConfigurationBuilder.class);
            scb.loader((org.infinispan.loaders.CacheLoader) loader);
            if (fetchPersistentState != null)
               scb.fetchPersistentState(fetchPersistentState);
            if (ignoreModifications != null)
               scb.ignoreModifications(ignoreModifications);
            parseStoreChildren(reader, scb, builder.persistence());
         } else if (loader instanceof ClusterLoader) {
            ClusterLoaderConfigurationBuilder cclb = builder.persistence().addClusterLoader();
View Full Code Here

Examples of org.infinispan.compatibility.adaptor52x.Adaptor52xStoreConfigurationBuilder.fetchPersistentState()

            parseLoaderChildren(reader, cclb);
         } else if (loader instanceof CacheLoader) {
            Adaptor52xStoreConfigurationBuilder scb = builder.persistence().addStore(Adaptor52xStoreConfigurationBuilder.class);
            scb.loader((org.infinispan.loaders.CacheLoader) loader);
            if (fetchPersistentState != null)
               scb.fetchPersistentState(fetchPersistentState);
            if (ignoreModifications != null)
               scb.ignoreModifications(ignoreModifications);
            parseStoreChildren(reader, scb, builder.persistence());
         } else {
            throw log.invalidCacheLoaderClass(loader.getClass().getName());
View Full Code Here

Examples of org.infinispan.configuration.cache.AbstractStoreConfiguration.fetchPersistentState()

         public void call() {
            PersistenceConfiguration cfg = cm.getDefaultCacheConfiguration().persistence();
            StoreConfiguration config = cfg.stores().get(0);
            assertTrue(config instanceof AbstractStoreConfiguration);
            AbstractStoreConfiguration abstractStoreConfiguration = (AbstractStoreConfiguration)config;
            assertTrue(abstractStoreConfiguration.fetchPersistentState());
            assertTrue(abstractStoreConfiguration.preload());
         }
      });
   }
View Full Code Here

Examples of org.infinispan.configuration.cache.CacheStoreConfiguration.fetchPersistentState()

         int numLoadersWithFetchPersistentState = 0;
         for (CacheLoaderConfiguration cfg : clmConfig.cacheLoaders()) {
            if (cfg instanceof CacheStoreConfiguration) {
               CacheStoreConfiguration scfg = (CacheStoreConfiguration) cfg;
               assertNotSingletonAndShared(scfg);
               if(scfg.fetchPersistentState()) numLoadersWithFetchPersistentState++;
            }
            if (numLoadersWithFetchPersistentState > 1)
               throw new Exception("Invalid cache loader configuration!!  Only ONE cache loader may have fetchPersistentState set to true.  Cache will not start!");

            CacheLoader l = createCacheLoader(LegacyConfigurationAdaptor.adapt(cfg), cache);
View Full Code Here

Examples of org.infinispan.configuration.cache.CacheStoreConfiguration.fetchPersistentState()

         int numLoadersWithFetchPersistentState = 0;
         for (CacheLoaderConfiguration cfg : clmConfig.cacheLoaders()) {
            if (cfg instanceof CacheStoreConfiguration) {
               CacheStoreConfiguration scfg = (CacheStoreConfiguration) cfg;
               assertNotSingletonAndShared(scfg);
               if(scfg.fetchPersistentState()) numLoadersWithFetchPersistentState++;
            }
            if (numLoadersWithFetchPersistentState > 1)
               throw log.multipleCacheStoresWithFetchPersistentState();

            CacheLoader l = createCacheLoader(cfg, cache);
View Full Code Here

Examples of org.infinispan.configuration.cache.CacheStoreConfiguration.fetchPersistentState()

         int numLoadersWithFetchPersistentState = 0;
         for (CacheLoaderConfiguration cfg : clmConfig.cacheLoaders()) {
            if (cfg instanceof CacheStoreConfiguration) {
               CacheStoreConfiguration scfg = (CacheStoreConfiguration) cfg;
               assertNotSingletonAndShared(scfg);
               if(scfg.fetchPersistentState()) numLoadersWithFetchPersistentState++;
            }
            if (numLoadersWithFetchPersistentState > 1)
               throw new Exception("Invalid cache loader configuration!!  Only ONE cache loader may have fetchPersistentState set to true.  Cache will not start!");

            CacheLoader l = createCacheLoader(LegacyConfigurationAdaptor.adapt(cfg), cache);
View Full Code Here

Examples of org.infinispan.configuration.cache.CacheStoreConfiguration.fetchPersistentState()

         int numLoadersWithFetchPersistentState = 0;
         for (CacheLoaderConfiguration cfg : clmConfig.cacheLoaders()) {
            if (cfg instanceof CacheStoreConfiguration) {
               CacheStoreConfiguration scfg = (CacheStoreConfiguration) cfg;
               assertNotSingletonAndShared(scfg);
               if(scfg.fetchPersistentState()) numLoadersWithFetchPersistentState++;
            }
            if (numLoadersWithFetchPersistentState > 1)
               throw new Exception("Invalid cache loader configuration!!  Only ONE cache loader may have fetchPersistentState set to true.  Cache will not start!");

            CacheLoader l = createCacheLoader(LegacyConfigurationAdaptor.adapt(cfg), cache);
View Full Code Here

Examples of org.infinispan.configuration.cache.CacheStoreConfiguration.fetchPersistentState()

         int numLoadersWithFetchPersistentState = 0;
         for (CacheLoaderConfiguration cfg : clmConfig.cacheLoaders()) {
            if (cfg instanceof CacheStoreConfiguration) {
               CacheStoreConfiguration scfg = (CacheStoreConfiguration) cfg;
               assertNotSingletonAndShared(scfg);
               if(scfg.fetchPersistentState()) numLoadersWithFetchPersistentState++;
            }
            if (numLoadersWithFetchPersistentState > 1)
               throw new Exception("Invalid cache loader configuration!!  Only ONE cache loader may have fetchPersistentState set to true.  Cache will not start!");

            CacheLoader l = createCacheLoader(LegacyConfigurationAdaptor.adapt(cfg), cache);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.