Examples of fluent()


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

public class LocalOptimisticTxTest extends AbstractLocalTest {

   @Override
   protected EmbeddedCacheManager createCacheManager() throws Exception {
      final Configuration config = getDefaultStandaloneConfig(true);
      config.fluent().transaction().lockingMode(LockingMode.OPTIMISTIC)
            .transactionManagerLookup(new DummyTransactionManagerLookup());
      return TestCacheManagerFactory.createCacheManager(config);
   }

   protected void assertLocking() {
View Full Code Here

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

public class LocalPessimisticTxTest extends AbstractLocalTest {

   @Override
   protected EmbeddedCacheManager createCacheManager() throws Exception {
      final Configuration config = getDefaultStandaloneConfig(true);
      config.fluent().transaction().lockingMode(LockingMode.PESSIMISTIC)
            .transactionManagerLookup(new DummyTransactionManagerLookup());
      return TestCacheManagerFactory.createCacheManager(config);
   }

   @Override
View Full Code Here

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

public class ForgetReplicationTest extends ForgetTest {

   @Override
   protected Configuration defaultRecoveryConfig() {
      Configuration configuration = super.defaultRecoveryConfig();
      configuration.fluent().mode(Configuration.CacheMode.REPL_SYNC);
      return configuration;
   }
}
View Full Code Here

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

   protected Configuration.CacheMode cacheMode = Configuration.CacheMode.REPL_SYNC;

   @Override
   protected void createCacheManagers() throws Exception {
      Configuration c = getDefaultClusteredConfig(cacheMode);
      c.fluent()
            .clustering().stateRetrieval().fetchInMemoryState(true);
      createClusteredCaches(1, cacheName, c);
   }

   public void testExtraChannelWithoutRpcDispatcher() throws Exception {
View Full Code Here

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

public class TxAndTimeoutExceptionTest extends SingleCacheManagerTest {

   @Override
   protected EmbeddedCacheManager createCacheManager() throws Exception {
      Configuration config = getDefaultStandaloneConfig(true);
      config.fluent().transaction().lockingMode(LockingMode.PESSIMISTIC);
      config.setUseLockStriping(false);
      config.setLockAcquisitionTimeout(1000);
      EmbeddedCacheManager cm = TestCacheManagerFactory.createCacheManager(config);
      cache = cm.getCache();
      return cm;
View Full Code Here

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

         cache1.put("k2", "v2");
         assert "v2".equals(cache1.get("k2"));

         // create a new cache, make sure it joins properly
         Configuration c = getDefaultClusteredConfig(cacheMode);
         c.fluent()
               .clustering().stateRetrieval().fetchInMemoryState(true);
         EmbeddedCacheManager cm = addClusterEnabledCacheManager(new TransportFlags());
         cm.defineConfiguration(cacheName, c);
         Cache cache2 = cm.getCache(cacheName);
         assert cache2.getAdvancedCache().getRpcManager().getTransport().getMembers().size() == 3;
View Full Code Here

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

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

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

public class LocalModeWithSyncTxTest extends LocalModeTxTest {

   @Override
   protected EmbeddedCacheManager createCacheManager() {
      Configuration config = getDefaultStandaloneConfig(true);
      config.fluent().transaction().transactionManagerLookupClass(DummyTransactionManagerLookup.class);
      config.fluent().transaction().useSynchronization(true);
      return TestCacheManagerFactory.createCacheManager(config);
   }

   public void testSyncRegisteredWithCommit() throws Exception {
View Full Code Here

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

   @Override
   protected EmbeddedCacheManager createCacheManager() {
      Configuration config = getDefaultStandaloneConfig(true);
      config.fluent().transaction().transactionManagerLookupClass(DummyTransactionManagerLookup.class);
      config.fluent().transaction().useSynchronization(true);
      return TestCacheManagerFactory.createCacheManager(config);
   }

   public void testSyncRegisteredWithCommit() throws Exception {
      DummyTransaction dt = startTx();
View Full Code Here

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

@Test(groups = "functional", testName = "TransactionCleanupWithAsync2ndPhaseRecoveryTest")
public class TransactionCleanupWithAsync2ndPhaseRecoveryTest extends TransactionCleanupWithAsync2ndPhaseTest {

   protected Configuration getConfiguration() {
      final Configuration dcc = super.getConfiguration();
      dcc.fluent().transaction().recovery();
      return dcc;
   }

}
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.