/** * Sets the attributes of this region */ public void setAttributes(RegionAttributes attrs) { setAttributes(attrs, true); }
/** * Sets the attributes of this region */ public void setAttributes(RegionAttributes attrs) { setAttributes(attrs, true); }
public Region createSubregion(String subregionName, RegionAttributes attrs) throws RegionExistsException, TimeoutException { RegionCreation subregion = new RegionCreation(this.cache, this, subregionName, null); subregion.setAttributes(attrs); this.addSubregion(subregionName, subregion); return subregion; }
public Region createSubregion(String subregionName, RegionAttributes attrs) throws RegionExistsException, TimeoutException { RegionCreation subregion = new RegionCreation(this.cache, this, subregionName, null); subregion.setAttributes(attrs); this.addSubregion(subregionName, subregion); return subregion; }
/** * 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); } }
public Region createRegion(String name, RegionAttributes attrs) throws RegionExistsException, TimeoutException { if (attrs instanceof RegionAttributesCreation) { ((RegionAttributesCreation) attrs).inheritAttributes(this); ((RegionAttributesCreation) attrs).prepareForValidation(); } AttributesFactory.validateAttributes(attrs); RegionCreation region = new RegionCreation(this, name, null); region.setAttributes(attrs); this.addRootRegion(region); return region; } public Region createRegion(String name, String refid) throws RegionExistsException, TimeoutException {
public Region createRegion(String name, RegionAttributes attrs) throws RegionExistsException, TimeoutException { if (attrs instanceof RegionAttributesCreation) { ((RegionAttributesCreation) attrs).inheritAttributes(this); ((RegionAttributesCreation) attrs).prepareForValidation(); } AttributesFactory.validateAttributes(attrs); RegionCreation region = new RegionCreation(this, name, null); region.setAttributes(attrs); this.addRootRegion(region); return region; } public Region createRegion(String name, String refid) throws RegionExistsException, TimeoutException {
RegionAttributesCreation ratts = new RegionAttributesCreation(); ((RegionCreation)region).setAttributes(ratts, false); rd.configure(ratts, false); log("Added dummy region named: " + rName + " with attributes: "