Examples of fluent()


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

   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

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

   private CheckInterceptor ci1;

   @Override
   protected void createCacheManagers() throws Throwable {
      final Configuration c = getDefaultClusteredConfig(Configuration.CacheMode.DIST_SYNC, false);
      c.fluent().hash().numOwners(1);
      createCluster(c, 2);
      waitForClusterToForm();
      ci0 = new CheckInterceptor();
      advancedCache(0).addInterceptor(ci0, 1);
      ci1 = new CheckInterceptor();
View Full Code Here

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

   }

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

   public void testForceCommitNonTxParticipant() {
      runTest(1);
View Full Code Here

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

   private Cache<String, String> createCache(String name) {
      Configuration c = new Configuration();
      c.setTransactionManagerLookupClass(TransactionSetup.getManagerLookup());
      c.setInvocationBatchingEnabled(true);
      c.fluent().transaction().transactionMode(TransactionMode.TRANSACTIONAL);
      assert c.getTransactionManagerLookupClass() != null : "Should have a transaction manager lookup class attached!!";
      cm.defineConfiguration(name, c);
      return cm.getCache(name);
   }
}
View Full Code Here

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

   EmbeddedCacheManager cm;

   @BeforeClass
   public void createCacheManager() {
      final Configuration defaultConfiguration = TestCacheManagerFactory.getDefaultConfiguration(true);
      defaultConfiguration.fluent().invocationBatching();
      defaultConfiguration.fluent().transaction().autoCommit(false);
      cm = TestCacheManagerFactory.createCacheManager(defaultConfiguration);
   }

   @AfterClass(alwaysRun = true)
View Full Code Here

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

   @BeforeClass
   public void createCacheManager() {
      final Configuration defaultConfiguration = TestCacheManagerFactory.getDefaultConfiguration(true);
      defaultConfiguration.fluent().invocationBatching();
      defaultConfiguration.fluent().transaction().autoCommit(false);
      cm = TestCacheManagerFactory.createCacheManager(defaultConfiguration);
   }

   @AfterClass(alwaysRun = true)
   public void destroyCacheManager() {
View Full Code Here

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

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

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

   private void doTest(boolean strict) {
      EmbeddedCacheManager cm1 = null, cm2 = null;
      try {
         Configuration c = new Configuration();
         c.setCacheMode(Configuration.CacheMode.REPL_SYNC);
         c.fluent().transaction().transactionMode(TransactionMode.NON_TRANSACTIONAL);
         GlobalConfiguration gc = GlobalConfiguration.getClusteredDefault();
         gc.setStrictPeerToPeer(strict);

         cm1 = TestCacheManagerFactory.createCacheManager(gc, c);
         cm2 = TestCacheManagerFactory.createCacheManager(gc, c);
View Full Code Here

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

   private InDoubtWithCommitFailsTest.ForceFailureInterceptor failureInterceptor1;

   @Override
   protected void createCacheManagers() throws Throwable {
      Configuration configuration = defaultRecoveryConfig();
      configuration.fluent().transaction().autoCommit(false);
      createCluster(configuration, 3);
      waitForClusterToForm();

      key = getKey();
View Full Code Here

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

public class OriginatorAndOwnerFailureReplicationTest extends OriginatorAndOwnerFailureTest {

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

   @Override
   protected Object getKey() {
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.