Package org.infinispan.config

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


   private static Log log = LogFactory.getLog(PostCommitRecoveryStateTest.class);

   @Override
   protected void createCacheManagers() throws Throwable {
      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);
      createCluster(configuration, 2);
View Full Code Here


   @Override
   protected void createCacheManagers() throws Throwable {
      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);
      createCluster(configuration, 2);
      waitForClusterToForm();
View Full Code Here

      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);
      createCluster(configuration, 2);
      waitForClusterToForm();
      ComponentRegistry componentRegistry = this.cache(0).getAdvancedCache().getComponentRegistry();
      XaTransactionTable txTable = (XaTransactionTable) componentRegistry.getComponent(TransactionTable.class);
      txTable.setRecoveryManager(new RecoveryManagerDelegate(txTable.getRecoveryManager()));
View Full Code Here

public class RecoveryHandlerTest extends MultipleCacheManagersTest {

   @Override
   protected void createCacheManagers() throws Throwable {
      final Configuration config = getDefaultClusteredConfig(Configuration.CacheMode.DIST_SYNC);
      config.fluent().transaction().recovery().useSynchronization(false);
      createCluster(config, 2);
      waitForClusterToForm();
   }

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

   final String k = "key";

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

   public void doTest() throws Throwable {
      cache.put(k, "value"); // init value
View Full Code Here

public class LockReleaseWithNoWriteTest extends MultipleCacheManagersTest {

   @Override
   protected void createCacheManagers() throws Throwable {
      Configuration dcc = getDefaultClusteredConfig(Configuration.CacheMode.DIST_SYNC, true);
      dcc.fluent().transaction().lockingMode(LockingMode.PESSIMISTIC).syncCommitPhase(false);
      createCluster(dcc, 2);
      waitForClusterToForm();
   }

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

@Test(groups = "functional", testName = "tx.synchronisation.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.synchronisation.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

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

   @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

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.