@Override public void setUp() { // make it a loner this.cache = (GemFireCacheImpl) new CacheFactory() .set("mcast-port", "0") .setPdxReadSerialized(true) .create(); }
@Override public void setUp() { // make it a loner this.c = (GemFireCacheImpl) new CacheFactory() .set("mcast-port", "0") .setPdxReadSerialized(true) .create(); }
public void run2() throws CacheException { if (CachedDeserializableFactory.preferObject()) { getCache(new CacheFactory().setPdxReadSerialized(true)); } configAndStartBridgeServer(); Region region = getRootRegion().getSubregion(regionName); System.out.println("##### Region size is: " + region.size()); assertEquals(0, TestObject.numInstance); } });
public void run2() throws CacheException { if (CachedDeserializableFactory.preferObject()) { getCache(new CacheFactory().setPdxReadSerialized(true)); } configAndStartBridgeServer(true, false); } });
public void run2() throws CacheException { if (CachedDeserializableFactory.preferObject()) { getCache(new CacheFactory().setPdxReadSerialized(true)); } configAndStartBridgeServer(true, false); } });
public void run2() throws CacheException { if (CachedDeserializableFactory.preferObject()) { getCache(new CacheFactory().setPdxReadSerialized(true)); } configAndStartBridgeServer(true, false); } });
@Override public void setUp() { // make it a loner this.c = (GemFireCacheImpl) new CacheFactory() .set("mcast-port", "0") .set("distributed-system-id", "127") .setPdxReadSerialized(true) .create(); }
private void setupSerializer(ReflectionBasedAutoSerializer s, boolean readSerialized) { this.serializer = s; this.manager = AutoSerializableManager.getInstance(s); this.c = (GemFireCacheImpl) new CacheFactory(). set("mcast-port", "0"). setPdxReadSerialized(readSerialized). setPdxSerializer(s). create(); } /*
public void run2() throws CacheException { if (CachedDeserializableFactory.preferObject()) { getCache(new CacheFactory().setPdxReadSerialized(true)); } configAndStartBridgeServer(); Region region = getRootRegion().getSubregion(regionName); } });
public void run2() throws CacheException { if (CachedDeserializableFactory.preferObject()) { getCache(new CacheFactory().setPdxReadSerialized(true)); } configAndStartBridgeServer(); Region region = getRootRegion().getSubregion(regionName); } });
/** * Configures the cache factory using this cache description. * Instantiates and caches the pdx serializer, if any. */ public void configure(CacheFactory f) { if (this.getPdxDiskStoreDescription() != null) { f.setPdxDiskStore(this.getPdxDiskStoreDescription().getName()); } f.setPdxIgnoreUnreadFields(this.getPdxIgnoreUnreadFields()); f.setPdxPersistent(this.getPdxPersistent()); f.setPdxReadSerialized(this.getPdxReadSerialized()); if (this.getPdxSerializerClass() != null) { f.setPdxSerializer(this.getPdxSerializerInstance()); } }
private Cache startWithGemFireApi(final Properties gemfireProperties ) { final CacheConfig cacheConfig = getCacheConfig(); final CacheFactory cacheFactory = new CacheFactory(gemfireProperties); if (cacheConfig.pdxPersistentUserSet) { cacheFactory.setPdxPersistent(cacheConfig.isPdxPersistent()); } if (cacheConfig.pdxDiskStoreUserSet) { cacheFactory.setPdxDiskStore(cacheConfig.getPdxDiskStore()); } if (cacheConfig.pdxIgnoreUnreadFieldsUserSet) { cacheFactory.setPdxIgnoreUnreadFields(cacheConfig.getPdxIgnoreUnreadFields()); } if (cacheConfig.pdxReadSerializedUserSet) { cacheFactory.setPdxReadSerialized(cacheConfig.isPdxReadSerialized()); } if (cacheConfig.pdxSerializerUserSet) { cacheFactory.setPdxSerializer(cacheConfig.getPdxSerializer()); } return cacheFactory.create(); }
cf.setPdxReadSerialized(false); c = getCache(cf); assertTrue(c instanceof GemFireCacheImpl);