SGF-193 -added enable-concurrency-checks to namespace

This commit is contained in:
David Turanski
2013-08-12 10:33:30 -04:00
parent d0e2125784
commit fb4e184794
3 changed files with 12 additions and 1 deletions

View File

@@ -603,6 +603,14 @@ clone of the value and then the clone is saved to the cache. When false, the val
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="concurrency-checks-enabled" type="xsd:string"
default="true">
<xsd:annotation>
<xsd:documentation><![CDATA[[
Indicates whether concurrency checks (versioning) are enabled for the region
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="destroy" type="xsd:string"
default="false">
<xsd:annotation>

View File

@@ -57,6 +57,8 @@ public class ReplicatedRegionNamespaceTest {
assertTrue(context.containsBean("simple"));
RegionFactoryBean fb = context.getBean("&simple", RegionFactoryBean.class);
assertEquals(false ,(Boolean)TestUtils.readField("close", fb));
RegionAttributes attrs = TestUtils.readField("attributes", fb);
assertFalse(attrs.getConcurrencyChecksEnabled());
}
@SuppressWarnings("rawtypes")
@@ -69,6 +71,7 @@ public class ReplicatedRegionNamespaceTest {
assertEquals("publisher", TestUtils.readField("name", fb));
RegionAttributes attrs = TestUtils.readField("attributes", fb);
assertFalse(attrs.getPublisher());
assertTrue(attrs.getConcurrencyChecksEnabled());
}
@SuppressWarnings("rawtypes")

View File

@@ -10,7 +10,7 @@
<gfe:cache />
<gfe:replicated-region id="simple" close="false" />
<gfe:replicated-region id="simple" close="false" concurrency-checks-enabled="false" />
<gfe:replicated-region id="pub" name="publisher"/>