Package org.infinispan.configuration.cache

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


      assert c.loaders().cacheLoaders().size() == 1;
      ClusterCacheLoaderConfiguration clusterLoaderCfg = (ClusterCacheLoaderConfiguration) c.loaders().cacheLoaders().get(0);
      assert clusterLoaderCfg.remoteCallTimeout() == 15000;

      c = cm.getCacheConfiguration("withLoaderDefaults");
      loaderCfg = (FileCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
      assert loaderCfg.location().equals("/tmp/Another-FileCacheStore-Location");
      assert loaderCfg.fsyncMode() == FileCacheStoreConfigurationBuilder.FsyncMode.DEFAULT;

      c = cm.getCacheConfiguration("withouthJmxEnabled");
      assert !c.jmxStatistics().enabled();
View Full Code Here


        this.batchingManager = batchingManager;
        this.invoker = new ForceSynchronousCacheInvoker(invoker);
        this.lockTimeout = this.cache.getCacheConfiguration().locking().lockAcquisitionTimeout();

        Configuration configuration = this.cache.getCacheConfiguration();
        this.passivationEnabled = configuration.loaders().passivation() && !configuration.loaders().shared() && !configuration.loaders().cacheLoaders().isEmpty();
        this.persistenceEnabled = !configuration.loaders().passivation() && !configuration.loaders().cacheLoaders().isEmpty();
        this.registry = registry;
        this.affinity = affinityFactory.createService(cache, this);
    }
View Full Code Here

        this.batchingManager = batchingManager;
        this.invoker = new ForceSynchronousCacheInvoker(invoker);
        this.lockTimeout = this.cache.getCacheConfiguration().locking().lockAcquisitionTimeout();

        Configuration configuration = this.cache.getCacheConfiguration();
        this.passivationEnabled = configuration.loaders().passivation() && !configuration.loaders().shared() && !configuration.loaders().cacheLoaders().isEmpty();
        this.persistenceEnabled = !configuration.loaders().passivation() && !configuration.loaders().cacheLoaders().isEmpty();
        this.registry = registry;
        this.affinity = affinityFactory.createService(cache, this);
    }
View Full Code Here

        this.batchingManager = batchingManager;
        this.invoker = new ForceSynchronousCacheInvoker(invoker);
        this.lockTimeout = this.cache.getCacheConfiguration().locking().lockAcquisitionTimeout();

        Configuration configuration = this.cache.getCacheConfiguration();
        this.passivationEnabled = configuration.loaders().passivation() && !configuration.loaders().shared() && !configuration.loaders().cacheLoaders().isEmpty();
        this.persistenceEnabled = !configuration.loaders().passivation() && !configuration.loaders().cacheLoaders().isEmpty();
        this.registry = registry;
        this.affinity = affinityFactory.createService(cache, this);
    }
View Full Code Here

        this.invoker = new ForceSynchronousCacheInvoker(invoker);
        this.lockTimeout = this.cache.getCacheConfiguration().locking().lockAcquisitionTimeout();

        Configuration configuration = this.cache.getCacheConfiguration();
        this.passivationEnabled = configuration.loaders().passivation() && !configuration.loaders().shared() && !configuration.loaders().cacheLoaders().isEmpty();
        this.persistenceEnabled = !configuration.loaders().passivation() && !configuration.loaders().cacheLoaders().isEmpty();
        this.registry = registry;
        this.affinity = affinityFactory.createService(cache, this);
    }

    /**
 
View Full Code Here

        this.invoker = new ForceSynchronousCacheInvoker(invoker);
        this.lockTimeout = this.cache.getCacheConfiguration().locking().lockAcquisitionTimeout();

        Configuration configuration = this.cache.getCacheConfiguration();
        this.passivationEnabled = configuration.loaders().passivation() && !configuration.loaders().shared() && !configuration.loaders().cacheLoaders().isEmpty();
        this.persistenceEnabled = !configuration.loaders().passivation() && !configuration.loaders().cacheLoaders().isEmpty();
        this.registry = registry;
        this.affinity = affinityFactory.createService(cache, this);
    }

    /**
 
View Full Code Here

            assert c.locking().concurrencyLevel() == 1000;
            assert !c.locking().useLockStriping();
            assert c.transaction().transactionMode().equals(TransactionMode.NON_TRANSACTIONAL);
            assert c.eviction().strategy().equals(EvictionStrategy.LRU);
            assert c.eviction().maxEntries() == 1000;
            assert !c.loaders().passivation();
            assert !c.loaders().fetchPersistentState();
            assert !c.loaders().shared();
            assert c.loaders().cacheLoaders().size() == 1;
            JdbcMixedCacheStoreConfiguration jmcs = (JdbcMixedCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
            assert jmcs.binaryTable().tableNamePrefix().equals("JDG_MIX_BKT");
View Full Code Here

            assert !c.locking().useLockStriping();
            assert c.transaction().transactionMode().equals(TransactionMode.NON_TRANSACTIONAL);
            assert c.eviction().strategy().equals(EvictionStrategy.LRU);
            assert c.eviction().maxEntries() == 1000;
            assert !c.loaders().passivation();
            assert !c.loaders().fetchPersistentState();
            assert !c.loaders().shared();
            assert c.loaders().cacheLoaders().size() == 1;
            JdbcMixedCacheStoreConfiguration jmcs = (JdbcMixedCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
            assert jmcs.binaryTable().tableNamePrefix().equals("JDG_MIX_BKT");
            assert jmcs.binaryTable().idColumnName().equals("id");
View Full Code Here

            assert c.transaction().transactionMode().equals(TransactionMode.NON_TRANSACTIONAL);
            assert c.eviction().strategy().equals(EvictionStrategy.LRU);
            assert c.eviction().maxEntries() == 1000;
            assert !c.loaders().passivation();
            assert !c.loaders().fetchPersistentState();
            assert !c.loaders().shared();
            assert c.loaders().cacheLoaders().size() == 1;
            JdbcMixedCacheStoreConfiguration jmcs = (JdbcMixedCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
            assert jmcs.binaryTable().tableNamePrefix().equals("JDG_MIX_BKT");
            assert jmcs.binaryTable().idColumnName().equals("id");
            assert jmcs.binaryTable().idColumnType().equals("VARCHAR");
View Full Code Here

            assert c.eviction().strategy().equals(EvictionStrategy.LRU);
            assert c.eviction().maxEntries() == 1000;
            assert !c.loaders().passivation();
            assert !c.loaders().fetchPersistentState();
            assert !c.loaders().shared();
            assert c.loaders().cacheLoaders().size() == 1;
            JdbcMixedCacheStoreConfiguration jmcs = (JdbcMixedCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
            assert jmcs.binaryTable().tableNamePrefix().equals("JDG_MIX_BKT");
            assert jmcs.binaryTable().idColumnName().equals("id");
            assert jmcs.binaryTable().idColumnType().equals("VARCHAR");
            assert jmcs.binaryTable().dataColumnName().equals("datum");
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.