Package org.infinispan.configuration.cache

Examples of org.infinispan.configuration.cache.ConfigurationBuilder.compatibility()


public class NonIndexedEmbeddedCompatTest extends EmbeddedCompatTest {

   @Override
   protected ConfigurationBuilder createConfigBuilder() {
      ConfigurationBuilder builder = hotRodCacheConfiguration();
      builder.compatibility().enable().marshaller(new CompatibilityProtoStreamMarshaller());
      return builder;
   }

   @Test(enabled = false)
   @Override
View Full Code Here


public class CompatModeTransactionsSpanningDistributedCachesTest extends TransactionsSpanningDistributedCachesTest {

   @Override
   protected ConfigurationBuilder getConfiguration() {
      ConfigurationBuilder builder = TestCacheManagerFactory.getDefaultCacheConfiguration(true, false);
      builder.compatibility().enable()
            .clustering()
            .cacheMode(CacheMode.DIST_SYNC)
            .stateTransfer().fetchInMemoryState(false)
            .transaction().syncCommitPhase(true).syncRollbackPhase(true)
            .cacheStopTimeout(0L);
View Full Code Here

public class CompatModeDistributedTwoNodesMapReduceTest extends BaseWordCountMapReduceTest {

   @Override
   protected void createCacheManagers() throws Throwable {
      ConfigurationBuilder builder = TestCacheManagerFactory.getDefaultCacheConfiguration(true, false);
      builder.compatibility().enable()
            .clustering()
            .cacheMode(CacheMode.DIST_SYNC)
            .stateTransfer().fetchInMemoryState(false)
            .transaction().syncCommitPhase(true).syncRollbackPhase(true)
            .cacheStopTimeout(0L);
View Full Code Here

public class CompatModeNonIndexedQueryDslConditionsTest extends NonIndexedQueryDslConditionsTest {

   @Override
   protected EmbeddedCacheManager createCacheManager() throws Exception {
      ConfigurationBuilder cfg = getDefaultStandaloneCacheConfig(true);
      cfg.compatibility().enable()
            .transaction().transactionMode(TransactionMode.TRANSACTIONAL);
      return TestCacheManagerFactory.createCacheManager(cfg);
   }
}
View Full Code Here

public class CompatModeQueryDslConditionsTest extends QueryDslConditionsTest {

   @Override
   protected EmbeddedCacheManager createCacheManager() throws Exception {
      ConfigurationBuilder cfg = getDefaultStandaloneCacheConfig(true);
      cfg.compatibility().enable()
            .transaction().transactionMode(TransactionMode.TRANSACTIONAL)
            .indexing().index(Index.ALL)
            .addProperty("default.directory_provider", "ram")
            .addProperty("lucene_version", "LUCENE_CURRENT");
      return TestCacheManagerFactory.createCacheManager(cfg);
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.