Package org.infinispan.config

Examples of org.infinispan.config.FluentConfiguration.clustering()


            .l1()
               .disable()
               .onRehash(false);
      }
     
      legacy.clustering()
         .stateRetrieval()
            .fetchInMemoryState(config.clustering().stateTransfer().fetchInMemoryState())
            .timeout(config.clustering().stateTransfer().timeout())
            .chunkSize(config.clustering().stateTransfer().chunkSize());
     
View Full Code Here


            .fetchInMemoryState(config.clustering().stateTransfer().fetchInMemoryState())
            .timeout(config.clustering().stateTransfer().timeout())
            .chunkSize(config.clustering().stateTransfer().chunkSize());
     
      if (config.clustering().cacheMode().isSynchronous()) {
         legacy.clustering()
            .sync()
               .replTimeout(config.clustering().sync().replTimeout());
      }
     
      for (InterceptorConfiguration interceptor : config.customInterceptors().interceptors()) {
View Full Code Here

            .sync()
               .replTimeout(config.clustering().sync().replTimeout());
      }
     
      for (InterceptorConfiguration interceptor : config.customInterceptors().interceptors()) {
         CustomInterceptorPosition position = legacy.clustering()
         .customInterceptors()
            // TODO This seems to miss most of the parameters like after and before out?!?
            .add(interceptor.interceptor());
         if (interceptor.after() != null)
            position.after(interceptor.after());
View Full Code Here

      if (config == null)
         return null;
     
      FluentConfiguration legacy = new Configuration().fluent();
     
      legacy.clustering()
         .mode(CacheMode.valueOf(config.clustering().cacheMode().name()));
     
      if (!config.clustering().cacheMode().isSynchronous()) {
         legacy.clustering()
            .async()
View Full Code Here

     
      legacy.clustering()
         .mode(CacheMode.valueOf(config.clustering().cacheMode().name()));
     
      if (!config.clustering().cacheMode().isSynchronous()) {
         legacy.clustering()
            .async()
               .asyncMarshalling(config.clustering().async().asyncMarshalling())
               .replQueueClass(config.clustering().async().replQueue().getClass())
               .replQueueInterval(config.clustering().async().replQueueInterval())
               .replQueueMaxElements(config.clustering().async().replQueueMaxElements())
View Full Code Here

               .replQueueMaxElements(config.clustering().async().replQueueMaxElements())
               .useReplQueue(config.clustering().async().useReplQueue());
      }
     
      if (config.clustering().hash().consistentHash() != null) {
         legacy.clustering()
            .hash()
               .consistentHashClass(config.clustering().hash().consistentHash().getClass());
     
      }
View Full Code Here

               .consistentHashClass(config.clustering().hash().consistentHash().getClass());
     
      }

      if (config.clustering().hash().hash() != null) {
         legacy.clustering()
            .hash()
               .hashFunctionClass(config.clustering().hash().hash().getClass());
      }

      legacy.clustering()
View Full Code Here

         legacy.clustering()
            .hash()
               .hashFunctionClass(config.clustering().hash().hash().getClass());
      }

      legacy.clustering()
         .hash()
            .numOwners(config.clustering().hash().numOwners())
            .numVirtualNodes(config.clustering().hash().numVirtualNodes())
            .groups()
               .enabled(config.clustering().hash().groups().enabled())
View Full Code Here

            .groups()
               .enabled(config.clustering().hash().groups().enabled())
               .groupers(config.clustering().hash().groups().groupers());

      if (config.clustering().cacheMode().isDistributed()) {
         legacy.clustering()
               .hash()
               .rehashEnabled(config.clustering().stateTransfer().fetchInMemoryState())
               .rehashRpcTimeout(config.clustering().stateTransfer().timeout())
               .rehashWait(config.clustering().stateTransfer().timeout());
      } else if (config.clustering().cacheMode().isClustered()) { // REPL or DIST
View Full Code Here

               .hash()
               .rehashEnabled(config.clustering().stateTransfer().fetchInMemoryState())
               .rehashRpcTimeout(config.clustering().stateTransfer().timeout())
               .rehashWait(config.clustering().stateTransfer().timeout());
      } else if (config.clustering().cacheMode().isClustered()) { // REPL or DIST
         legacy.clustering()
               .stateRetrieval()
               .fetchInMemoryState(config.clustering().stateTransfer().fetchInMemoryState())
               .timeout(config.clustering().stateTransfer().timeout());
      }
      if (config.clustering().l1().enabled()) {
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.