Package org.infinispan.configuration.cache

Examples of org.infinispan.configuration.cache.LoadersConfigurationBuilder


      storeBuilder.singletonStore().enabled(false);
   }

   public void testAS72StoreConfiguration() {
      ConfigurationBuilder builder = new ConfigurationBuilder();
      LoadersConfigurationBuilder loadersBuilder = builder.loaders().shared(false).preload(true).passivation(false);
      CacheStoreConfigurationBuilder<?, ?> storeBuilder = loadersBuilder.addStore(FileCacheStoreConfigurationBuilder.class).location("/tmp").fetchPersistentState(false)
            .purgeOnStartup(false).purgeSynchronously(true);
      storeBuilder.singletonStore().enabled(false);

   }
View Full Code Here


            final boolean purge = BaseStoreResource.PURGE.resolveModelAttribute(context, store).asBoolean();
            final boolean singleton = BaseStoreResource.SINGLETON.resolveModelAttribute(context, store).asBoolean();
            // TODO Fix me
            final boolean async = store.hasDefined(ModelKeys.WRITE_BEHIND) && store.get(ModelKeys.WRITE_BEHIND, ModelKeys.WRITE_BEHIND_NAME).isDefined();

            LoadersConfigurationBuilder loadersBuilder = builder.loaders()
                    .shared(shared)
                    .preload(preload)
                    .passivation(passivation)
            ;
            CacheStoreConfigurationBuilder<?, ?> storeBuilder = this.buildCacheStore(context, loadersBuilder, containerName, store, storeKey, dependencies)
View Full Code Here

      }
   }

   private void parseRemoteStore(final XMLExtendedStreamReader reader, ConfigurationBuilderHolder holder) throws XMLStreamException {
      ParserContextAS7 context = holder.getParserContext(ParserAS7.class);
      LoadersConfigurationBuilder loaders = holder.getCurrentConfigurationBuilder().loaders();
      RemoteCacheStoreConfigurationBuilder builder = new RemoteCacheStoreConfigurationBuilder(loaders);
      parseRemoteStoreAttributes(reader, builder);

      while (reader.hasNext() && (reader.nextTag() != XMLStreamConstants.END_ELEMENT)) {
         Element element = Element.forName(reader.getLocalName());
         switch (element) {
         case REMOTE_SERVER: {
            parseServer(reader, builder.addServer(), context);
            break;
         }
         default: {
            ParserAS7.parseStoreElement(reader, builder);
         }
         }
      }
      loaders.addStore(builder);
   }
View Full Code Here

      storeBuilder.singletonStore().enabled(false);
   }

   public void testAS72StoreConfiguration() {
      ConfigurationBuilder builder = new ConfigurationBuilder();
      LoadersConfigurationBuilder loadersBuilder = builder.loaders().shared(false).preload(true).passivation(false);
      CacheStoreConfigurationBuilder<?, ?> storeBuilder = loadersBuilder.addStore(FileCacheStoreConfigurationBuilder.class).location("/tmp").fetchPersistentState(false)
            .purgeOnStartup(false).purgeSynchronously(true);
      storeBuilder.singletonStore().enabled(false);

   }
View Full Code Here

TOP

Related Classes of org.infinispan.configuration.cache.LoadersConfigurationBuilder

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.