@Override public Void apply(CacheConfiguration cc) { cc.setAtomicityMode(ATOMIC); cc.setNearConfiguration(null); cc.setCacheStoreFactory(null); return null; } };
@Override public Void apply(CacheConfiguration cc) { cc.setAtomicityMode(TRANSACTIONAL); cc.setNearConfiguration(null); cc.setCacheStoreFactory(null); return null; } };
/** {@inheritDoc} */ @Override protected CacheConfiguration cacheConfiguration(String igniteInstanceName) throws Exception { CacheConfiguration ccfg = super.cacheConfiguration(igniteInstanceName); ccfg.setCacheStoreFactory(null); ccfg.setReadThrough(false); ccfg.setWriteThrough(false); return ccfg; }
/** {@inheritDoc} */ @Override protected CacheConfiguration cacheConfiguration(String igniteInstanceName) throws Exception { CacheConfiguration ccfg = super.cacheConfiguration(igniteInstanceName); ccfg.setReadThrough(false); ccfg.setWriteThrough(false); ccfg.setCacheStoreFactory(null); return ccfg; } }
/** * */ @Test public void testResourcesInStoreFactory() throws Exception { cacheCfg.setCacheStoreFactory(new MyCacheStoreFactory()); startGrid(0); }
/** {@inheritDoc} */ @Override protected CacheConfiguration cacheConfiguration(String igniteInstanceName) throws Exception { CacheConfiguration cfg = super.cacheConfiguration(igniteInstanceName); cfg.setCacheStoreFactory(null); cfg.setReadThrough(false); cfg.setWriteThrough(false); return cfg; }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") @Override protected CacheConfiguration cacheConfiguration(String igniteInstanceName) throws Exception { CacheConfiguration ccfg = super.cacheConfiguration(igniteInstanceName); ccfg.setCacheStoreFactory(null); ccfg.setReadThrough(false); ccfg.setWriteThrough(false); return ccfg; }
/** {@inheritDoc} */ @Override protected CacheConfiguration cacheConfiguration(String igniteInstanceName) throws Exception { CacheConfiguration cfg = super.cacheConfiguration(igniteInstanceName); cfg.setCacheStoreFactory(null); cfg.setReadThrough(false); cfg.setWriteThrough(false); return cfg; }
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); //noinspection unchecked cfg.setCacheConfiguration(new CacheConfiguration(CACHE_NAME).setCacheStoreFactory(new TestFactory())); return cfg; }
/** * @return Cache configuration. */ protected CacheConfiguration<String, String> cacheConfiguration() { CacheConfiguration<String, String> cfg = new CacheConfiguration<>(CACHE_NAME); cfg.setCacheStoreFactory(new StoreFactory()); cfg.setReadThrough(true); cfg.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC); return cfg; }
/** * @param name Cache name. * @return Cache configuration. */ private CacheConfiguration<Integer, Integer> cacheConfiguration(String name) { CacheConfiguration<Integer, Integer> cacheCfg = new CacheConfiguration<>(name); cacheCfg.setAtomicityMode(TRANSACTIONAL); cacheCfg.setCacheStoreFactory(FactoryBuilder.factoryOf(Store.class)); cacheCfg.setWriteThrough(true); return cacheCfg; }
/** {@inheritDoc} */ @Override protected CacheConfiguration cacheConfiguration(String igniteInstanceName) throws Exception { CacheConfiguration cfg = super.cacheConfiguration(igniteInstanceName); cfg.setRebalanceMode(ASYNC); cfg.setWriteSynchronizationMode(FULL_SYNC); cfg.setCacheStoreFactory(null); cfg.setReadThrough(false); cfg.setWriteThrough(false); return cfg; } }
/** {@inheritDoc} */ @Override protected CacheConfiguration cacheConfiguration(String igniteInstanceName) throws Exception { CacheConfiguration ccfg = super.cacheConfiguration(igniteInstanceName); ccfg.setCacheStoreFactory(null); ccfg.setReadThrough(false); ccfg.setWriteThrough(false); ccfg.setLoadPreviousValue(false); ccfg.setIndexedTypes(Integer.class, Integer.class); return ccfg; }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") @Override protected CacheConfiguration cacheConfiguration(String igniteInstanceName) throws Exception { MvccFeatureChecker.skipIfNotSupported(MvccFeatureChecker.Feature.CACHE_STORE); CacheConfiguration ccfg = super.cacheConfiguration(igniteInstanceName); ccfg.setCacheStoreFactory(singletonFactory(store)); ccfg.setReadThrough(true); ccfg.setWriteThrough(true); ccfg.setLoadPreviousValue(true); return ccfg; }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") @Override protected CacheConfiguration cacheConfiguration(String igniteInstanceName) throws Exception { CacheConfiguration cfg = super.cacheConfiguration(igniteInstanceName); cfg.setCacheStoreFactory(singletonFactory(new TestStore())); cfg.setReadThrough(true); cfg.setWriteThrough(true); cfg.setLoadPreviousValue(true); return cfg; }
@SuppressWarnings("unchecked") @Override public Void apply(CacheConfiguration cc) { cc.setAtomicityMode(ATOMIC); cc.setNearConfiguration(null); cc.setCacheStoreFactory(new IgniteCacheAbstractTest.TestStoreFactory()); cc.setReadThrough(true); cc.setWriteThrough(true); cc.setLoadPreviousValue(true); return null; } };
@SuppressWarnings("unchecked") @Override public Void apply(CacheConfiguration cc) { cc.setAtomicityMode(TRANSACTIONAL); cc.setNearConfiguration(null); cc.setCacheStoreFactory(new IgniteCacheAbstractTest.TestStoreFactory()); cc.setReadThrough(true); cc.setWriteThrough(true); cc.setLoadPreviousValue(true); return null; } };
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { CacheConfiguration cacheCfg = new CacheConfiguration(CACHE_NAME) .setWriteSynchronizationMode(CacheWriteSynchronizationMode.PRIMARY_SYNC) .setCacheStoreFactory(FactoryBuilder.factoryOf(ThrowableCacheStore.class)) .setWriteThrough(true) .setStoreKeepBinary(true); return super.getConfiguration(gridName) .setCacheConfiguration(cacheCfg); }
/** {@inheritDoc} */ @Override public Void apply(CacheConfiguration cfg) { cfg.setAffinity(new RendezvousAffinityFunction()); cfg.setEvictionPolicyFactory(new FifoEvictionPolicyFactory<>()); cfg.setEvictionPolicy(new LruEvictionPolicy()); cfg.setOnheapCacheEnabled(true); cfg.setCacheStoreFactory(null); return null; } };
/** {@inheritDoc} */ @Override protected CacheConfiguration cacheConfiguration(String igniteInstanceName) throws Exception { CacheConfiguration cacheCfg = super.cacheConfiguration(igniteInstanceName); cacheCfg.setCacheStoreFactory(FactoryBuilder.factoryOf(EmptyCacheStore.class)); cacheCfg.setCacheStoreSessionListenerFactories(new CacheStoreSessionFactory()); cacheCfg.setReadThrough(false); cacheCfg.setWriteThrough(false); cacheCfg.setBackups(0); return cacheCfg; }