Examples of compatibility()


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

      withCacheManager(new CacheManagerCallable(TestCacheManagerFactory.fromStream(is)) {
         @Override
         public void call() {
            Configuration cfg = cm.getDefaultCacheConfiguration();
            assertFalse(cfg.compatibility().enabled());
            assertNull(cfg.compatibility().marshaller());
         }
      });

      config = INFINISPAN_START_TAG +
            "<cache-container default-cache=\"default\">" +
View Full Code Here

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

      is = new ByteArrayInputStream(config.getBytes());
      withCacheManager(new CacheManagerCallable(TestCacheManagerFactory.fromStream(is)) {
         @Override
         public void call() {
            Configuration cfg = cm.getDefaultCacheConfiguration();
            assertTrue(cfg.compatibility().enabled());
            assertNull(cfg.compatibility().marshaller());
         }
      });

      config = INFINISPAN_START_TAG +
View Full Code Here

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

      withCacheManager(new CacheManagerCallable(TestCacheManagerFactory.fromStream(is)) {
         @Override
         public void call() {
            Configuration cfg = cm.getDefaultCacheConfiguration();
            assertTrue(cfg.compatibility().enabled());
            assertNull(cfg.compatibility().marshaller());
         }
      });

      config = INFINISPAN_START_TAG +
            "<cache-container default-cache=\"default\">" +
View Full Code Here

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

      is = new ByteArrayInputStream(config.getBytes());
      withCacheManager(new CacheManagerCallable(TestCacheManagerFactory.fromStream(is)) {
         @Override
         public void call() {
            Configuration cfg = cm.getDefaultCacheConfiguration();
            assertTrue(cfg.compatibility().enabled());
            assertTrue(cfg.compatibility().marshaller() instanceof GenericJBossMarshaller);
         }
      });
   }
View Full Code Here

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

      withCacheManager(new CacheManagerCallable(TestCacheManagerFactory.fromStream(is)) {
         @Override
         public void call() {
            Configuration cfg = cm.getDefaultCacheConfiguration();
            assertTrue(cfg.compatibility().enabled());
            assertTrue(cfg.compatibility().marshaller() instanceof GenericJBossMarshaller);
         }
      });
   }

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

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

            assertTrue(c.versioning().enabled());
            assertEquals(VersioningScheme.SIMPLE, c.versioning().scheme());
            assertFalse(c.deadlockDetection().enabled());

            c = cm.getCache("compatibility").getCacheConfiguration();
            assertTrue(c.compatibility().enabled());
            assertTrue(c.compatibility().marshaller() instanceof GenericJBossMarshaller);
            assertTrue(c.deadlockDetection().enabled());
            assertEquals(200, c.deadlockDetection().spinDuration());

            c = cm.getCache("custom-container").getCacheConfiguration();
View Full Code Here

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

            assertEquals(VersioningScheme.SIMPLE, c.versioning().scheme());
            assertFalse(c.deadlockDetection().enabled());

            c = cm.getCache("compatibility").getCacheConfiguration();
            assertTrue(c.compatibility().enabled());
            assertTrue(c.compatibility().marshaller() instanceof GenericJBossMarshaller);
            assertTrue(c.deadlockDetection().enabled());
            assertEquals(200, c.deadlockDetection().spinDuration());

            c = cm.getCache("custom-container").getCacheConfiguration();
            assertTrue(c.dataContainer().dataContainer() instanceof QueryableDataContainer);
View Full Code Here

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

   }

   @Override
   public void cacheStarted(ComponentRegistry cr, String cacheName) {
      Configuration configuration = cr.getComponent(Configuration.class);
      boolean remoteValueWrappingEnabled = configuration.indexing().index().isEnabled() && !configuration.compatibility().enabled();
      if (!remoteValueWrappingEnabled) {
         if (verifyChainContainsRemoteValueWrapperInterceptor(cr)) {
            throw new IllegalStateException("It was NOT expected to find the RemoteValueWrapperInterceptor registered in the InterceptorChain as indexing was disabled, but it was found");
         }
         return;
View Full Code Here

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

public class CompatModeClusteredCacheTest extends ClusteredCacheTest {

   @Override
   protected void createCacheManagers() throws Throwable {
      ConfigurationBuilder cacheCfg = getDefaultClusteredCacheConfig(CacheMode.REPL_SYNC, transactionsEnabled());
      cacheCfg
            .compatibility().enable()
            .indexing()
            .enable()
            .indexLocalOnly(false)
            .addProperty("default.directory_provider", "ram")
View Full Code Here

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

public class CompatModeLocalCacheTest extends LocalCacheTest {

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