+ expose close and destroy on read-write region namespace
+ wire the new properties into the namespace tests
This commit is contained in:
Costin Leau
2011-02-11 13:49:12 +02:00
parent 8d2415098d
commit fec1b4cc72
5 changed files with 28 additions and 5 deletions

View File

@@ -202,6 +202,29 @@ Note: Persistence for partitioned regions is supported only from GemFire 6.5 onw
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="destroy" type="xsd:boolean" default="false">
<xsd:annotation>
<xsd:documentation><![CDATA[
Indicates whether the defined region should be destroyed or not at shutdown. Destroy cascades to all entries and subregions.
After the destroy, this region object can not be used any more and any attempt to use this region object will get
RegionDestroyedException.
Default is false, meaning that regions are not destroyed.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="close" type="xsd:boolean" default="true">
<xsd:annotation>
<xsd:documentation><![CDATA[
Indicates whether the defined region should be closed or not at shutdown. Close performs a local destroy but leaves behind the region
disk files. Additionally it notifies the listeners and callbacks.
Default is true, meaning the regions are closed.
Note: Regions are automatically closed when cache closes.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

View File

@@ -13,9 +13,9 @@
<gfe:client-region id="simple" pool-name="gemfire-pool"/>
<gfe:client-region id="empty" pool-name="gemfire-pool" name="publisher" data-policy="EMPTY"/>
<gfe:client-region id="empty" pool-name="gemfire-pool" name="publisher" data-policy="EMPTY" close="true" destroy="false"/>
<gfe:client-region id="complex" pool-name="gemfire-pool">
<gfe:client-region id="complex" pool-name="gemfire-pool" close="true" destroy="false">
<gfe:cache-listener>
<ref bean="c-listener"/>
<bean class="org.springframework.data.gemfire.SimpleCacheListener"/>

View File

@@ -10,7 +10,7 @@
<gfe:cache />
<gfe:replicated-region id="replicated-data" persistent="true">
<gfe:replicated-region id="replicated-data" persistent="true" close="true" destroy="false">
<gfe:disk-store queue-size="50" auto-compact="true" max-oplog-size="10" synchronous-write="false" time-interval="9999">
<gfe:disk-dir location="./" max-size="1"/>
</gfe:disk-store>

View File

@@ -12,7 +12,7 @@
<gfe:partitioned-region id="simple" />
<gfe:partitioned-region id="options" copies="1" total-buckets="4" name="redundant">
<gfe:partitioned-region id="options" copies="1" total-buckets="4" name="redundant" close="true" destroy="false">
<gfe:partition-resolver>
<bean class="org.springframework.data.gemfire.SimplePartitionResolver"/>
</gfe:partition-resolver>

View File

@@ -14,7 +14,7 @@
<gfe:replicated-region id="pub" name="publisher"/>
<gfe:replicated-region id="complex">
<gfe:replicated-region id="complex" close="true" destroy="false">
<gfe:cache-listener>
<ref bean="c-listener"/>
<bean class="org.springframework.data.gemfire.SimpleCacheListener"/>