Package org.infinispan.config

Examples of org.infinispan.config.Configuration.fluent()


      Configuration configuration = getDefaultClusteredConfig(Configuration.CacheMode.DIST_SYNC, true);
      configuration.fluent().locking().useLockStriping(false);
      configuration.fluent().transaction()
         .transactionManagerLookupClass(RecoveryDummyTransactionManagerLookup.class)
         .recovery();
      configuration.fluent().clustering().hash().rehashEnabled(false);
      configuration.fluent().hash().numOwners(3);
      configuration.fluent().transaction().recovery();

      createCluster(configuration, 4);
      waitForClusterToForm();
View Full Code Here


      configuration.fluent().locking().useLockStriping(false);
      configuration.fluent().transaction()
         .transactionManagerLookupClass(RecoveryDummyTransactionManagerLookup.class)
         .recovery();
      configuration.fluent().clustering().hash().rehashEnabled(false);
      configuration.fluent().hash().numOwners(3);
      configuration.fluent().transaction().recovery();

      createCluster(configuration, 4);
      waitForClusterToForm();
   }
View Full Code Here

      configuration.fluent().transaction()
         .transactionManagerLookupClass(RecoveryDummyTransactionManagerLookup.class)
         .recovery();
      configuration.fluent().clustering().hash().rehashEnabled(false);
      configuration.fluent().hash().numOwners(3);
      configuration.fluent().transaction().recovery();

      createCluster(configuration, 4);
      waitForClusterToForm();
   }
View Full Code Here


   @SuppressWarnings("unchecked")
   protected void createCacheManagers() throws Throwable {
      Configuration c = getConfig();
      c.fluent().transaction().autoCommit(false);
      createClusteredCaches(2, c);
   }

   protected Configuration getConfig() {
      return getDefaultClusteredConfig(sync() ? Configuration.CacheMode.REPL_SYNC : Configuration.CacheMode.REPL_ASYNC, true);
View Full Code Here

      c.setSyncReplTimeout(30000);
      c.setLockAcquisitionTimeout(60000);
      c.setSyncCommitPhase(true);
      c.setSyncRollbackPhase(true);
      c.setUseLockStriping(false);
      c.fluent().transaction().transactionMode(TransactionMode.TRANSACTIONAL);

      EmbeddedCacheManager container = TestCacheManagerFactory.createClusteredCacheManager(c);
      container.start();
      registerCacheManager(container);
      container.startCaches(CacheContainer.DEFAULT_CACHE_NAME, "TestCache");
View Full Code Here

      waitForClusterToForm();
   }

   protected Configuration getConfiguration() {
      final Configuration dcc = getDefaultClusteredConfig(Configuration.CacheMode.REPL_SYNC, true);
      dcc.fluent().transaction().syncCommitPhase(false).syncRollbackPhase(true);
      return dcc;
   }

   public void transactionCleanupTest1() throws Throwable {
      runtTest(1, false);
View Full Code Here

   Cache<String, String> c1, c2;

   @Override
   protected void createCacheManagers() throws Throwable {
      Configuration c = getDefaultClusteredConfig(Configuration.CacheMode.REPL_SYNC, true);
      c.fluent().transaction().lockingMode(LockingMode.PESSIMISTIC);
      c.setLockAcquisitionTimeout(500);
      List<Cache<String, String>> caches = createClusteredCaches(2, "tx", c);
      c1 = caches.get(0);
      c2 = caches.get(1);
   }
View Full Code Here

@Test(groups = "functional", testName = "tx.synchronization.APIDistWithSyncTest")
public class APIDistWithSyncTest extends APIDistTest {
   @Override
   protected Configuration createConfig() {
      Configuration config = super.createConfig();
      config.fluent().transaction().useSynchronization(true);
      return config;
   }
}
View Full Code Here

@Test (groups = "functional", testName = "tx.synchronization.DldEagerLockingDistributedWithSyncTest")
public class DldEagerLockingDistributedWithSyncTest extends DldPessimisticLockingDistributedTest {
   @Override
   protected Configuration createConfiguration() {
      Configuration configuration = super.createConfiguration();
      configuration.fluent().transaction().useSynchronization(true);
      return configuration;
   }
}
View Full Code Here

            .transport().distributedSyncTimeout(60000L)
            .shutdown().hookBehavior(ShutdownHookBehavior.DONT_REGISTER)
            ;
        Defaults defaults = new Defaults(global);
        Configuration defaultConfig = new Configuration();
        defaultConfig.fluent()
            .locking().lockAcquisitionTimeout(15000L).useLockStriping(false).concurrencyLevel(1000)
            .eviction().strategy(EvictionStrategy.NONE).maxEntries(10000)
            .transaction().transactionMode(org.infinispan.transaction.TransactionMode.TRANSACTIONAL).useSynchronization(true)
            ;
        for (Configuration.CacheMode mode: Configuration.CacheMode.values()) {
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.