/** * After popping the current <code>RegionAttributesCreation</code> off the * stack, we add it to the <code>RegionCreation</code> that should be on the * top of the stack. */ private void endRegionAttributes() { RegionAttributesCreation attrs = (RegionAttributesCreation) stack.pop(); CacheCreation cache; Object top = stack.peek(); if (top instanceof RegionCreation) { RegionCreation region = (RegionCreation) top; region.setAttributes(attrs); cache = (CacheCreation) region.getCache(); } else if (top instanceof CacheCreation) { cache = (CacheCreation) top; } else { String s = "Did not expected a " + top.getClass().getName() + " on top of the stack."; Assert.assertTrue(false, s); cache = null; // Dead code } String id = attrs.getId(); if (id != null) { cache.setRegionAttributes(id, attrs); } }
/** * After popping the current <code>RegionAttributesCreation</code> off the * stack, we add it to the <code>RegionCreation</code> that should be on the * top of the stack. */ private void endRegionAttributes() { RegionAttributesCreation attrs = (RegionAttributesCreation) stack.pop(); CacheCreation cache; Object top = stack.peek(); if (top instanceof RegionCreation) { RegionCreation region = (RegionCreation) top; region.setAttributes(attrs); cache = (CacheCreation) region.getCache(); } else if (top instanceof CacheCreation) { cache = (CacheCreation) top; } else { String s = "Did not expected a " + top.getClass().getName() + " on top of the stack."; Assert.assertTrue(false, s); cache = null; // Dead code } String id = attrs.getId(); if (id != null) { cache.setRegionAttributes(id, attrs); } }
String id = this.attrs.getId(); if (id != null) { RegionAttributes realAttrs = me.getAttributes();
String id = this.attrs.getId(); if (id != null) { RegionAttributes realAttrs = me.getAttributes();
attrs.setEarlyAck(false); attrs.setMulticastEnabled(true); creation.setRegionAttributes(attrs.getId(), attrs); attrs = new RegionAttributesCreation(creation); attrs.setRefid(attrId);