private void startPdx(Attributes atts) { String readSerialized = atts.getValue(READ_SERIALIZED); if(readSerialized != null) { cache.setPdxReadSerialized(Boolean.parseBoolean(readSerialized)); } String ignoreUnreadFields = atts.getValue(IGNORE_UNREAD_FIELDS); if(ignoreUnreadFields != null) { cache.setPdxIgnoreUnreadFields(Boolean.parseBoolean(ignoreUnreadFields)); } String persistent = atts.getValue(PERSISTENT); if(persistent != null) { cache.setPdxPersistent(Boolean.parseBoolean(persistent)); } String diskStoreName = atts.getValue(DISK_STORE_NAME); if(diskStoreName != null) { cache.setPdxDiskStore(diskStoreName); } }
private void startPdx(Attributes atts) { String readSerialized = atts.getValue(READ_SERIALIZED); if(readSerialized != null) { cache.setPdxReadSerialized(Boolean.parseBoolean(readSerialized)); } String ignoreUnreadFields = atts.getValue(IGNORE_UNREAD_FIELDS); if(ignoreUnreadFields != null) { cache.setPdxIgnoreUnreadFields(Boolean.parseBoolean(ignoreUnreadFields)); } String persistent = atts.getValue(PERSISTENT); if(persistent != null) { cache.setPdxPersistent(Boolean.parseBoolean(persistent)); } String diskStoreName = atts.getValue(DISK_STORE_NAME); if(diskStoreName != null) { cache.setPdxDiskStore(diskStoreName); } }
cache.setPdxIgnoreUnreadFields(ignoreUnreadFields); } else { cache.setPdxIgnoreUnreadFields(CacheConfig.DEFAULT_PDX_IGNORE_UNREAD_FIELDS);
/** * Configures the dummy cache using this cache description. * Instantiates and caches the pdx serializer, if any. */ public void configureDummy(CacheCreation c) { configure(c); // attributes that normally use the Cache API // configure attributes that normally use the CacheFactory API if (this.getPdxDiskStoreDescription() != null) { c.setPdxDiskStore(this.getPdxDiskStoreDescription().getName()); } c.setPdxIgnoreUnreadFields(this.getPdxIgnoreUnreadFields()); c.setPdxPersistent(this.getPdxPersistent()); c.setPdxReadSerialized(this.getPdxReadSerialized()); if (this.getPdxSerializerClass() != null) { c.setPdxSerializer(this.getPdxSerializerInstance()); } }
creation.setPdxPersistent(true); creation.setPdxReadSerialized(true); creation.setPdxIgnoreUnreadFields(true); creation.setPdxDiskStore("my_disk_store"); TestPdxSerializer serializer = new TestPdxSerializer();