Package org.infinispan.loader.decorators

Examples of org.infinispan.loader.decorators.SingletonStoreConfig


               tmpStore = new ReadOnlyStore(tmpStore);
               tmpLoader = tmpStore;
            }

            // singleton?
            SingletonStoreConfig ssc = cfg2.getSingletonStoreConfig();
            if (ssc != null && ssc.isSingletonStoreEnabled()) {
               tmpStore = new SingletonStore(tmpStore, cache, ssc);
               tmpLoader = tmpStore;
            }
         }
View Full Code Here


      }
      return tmpLoader;
   }

   void assertNotSingletonAndShared(CacheStoreConfig cfg) {
      SingletonStoreConfig ssc = cfg.getSingletonStoreConfig();
      if (ssc != null && ssc.isSingletonStoreEnabled() && clmConfig.isShared())
         throw new ConfigurationException("Invalid cache loader configuration!!  If a cache loader is configured as a singleton, the cache loader cannot be shared in a cluster!");
   }
View Full Code Here

      }
      return clc;
   }

   public SingletonStoreConfig parseSingletonStoreConfig(Element element) {
      SingletonStoreConfig ssc = new SingletonStoreConfig();
      if (element == null) {
         ssc.setSingletonStoreEnabled(false);
      } else {
         boolean singletonStoreEnabled = getBoolean(getAttributeValue(element, "enabled"));
         ssc.setSingletonStoreEnabled(singletonStoreEnabled);

         String tmp = getAttributeValue(element, "pushStateWhenCoordinator");
         if (existsAttribute(tmp)) ssc.setPushStateWhenCoordinator(getBoolean(tmp));

         tmp = getAttributeValue(element, "pushStateTimeout");
         if (existsAttribute(tmp)) ssc.setPushStateTimeout(getLong(tmp));
      }
      return ssc;
   }
View Full Code Here

TOP

Related Classes of org.infinispan.loader.decorators.SingletonStoreConfig

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.