SGF-289 - Enumeration restrictions (xsd:enumeration) should be avoided in the XML schema.
Removed the XSD enumeration restriction on the 'scope' attribute of the 'baseReplicatedRegionType' complexType, Region element definition in the SDG XSD allowing the use of property placeholders to specify a GemFire Cache Region's Scope for different distribution patterns. In addition, completely removed the 'scopeType' simpleType element definition in the SDG XSD.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
|
||||
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
|
||||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
|
||||
" default-lazy-init="true">
|
||||
">
|
||||
|
||||
<util:properties id="indexConfiguration">
|
||||
<prop key="index.complex.type">HASH</prop>
|
||||
@@ -28,9 +28,11 @@
|
||||
|
||||
<gfe:cache properties-ref="gemfireProperties"/>
|
||||
|
||||
<gfe:index id="simple" expression="status" from="/TestIndexRegion" type="functional"/>
|
||||
<gfe:replicated-region id="IndexedRegion" persistent="false"/>
|
||||
|
||||
<gfe:index id="complex" name="complex-index" expression="tsi.name" from="/TestIndexRegion tsi"
|
||||
<gfe:index id="simple" expression="status" from="/IndexedRegion" type="functional"/>
|
||||
|
||||
<gfe:index id="complex" name="complex-index" expression="tsi.name" from="/IndexedRegion tsi"
|
||||
imports="import java.util" type="${index.complex.type}"/>
|
||||
|
||||
</beans>
|
||||
|
||||
@@ -55,13 +55,14 @@
|
||||
|
||||
<util:properties id="regionConfigurationSettings">
|
||||
<prop key="gemfire.index-update-type">synchronous</prop>
|
||||
<prop key="gemfire.scope">distributed-No_ACK</prop>
|
||||
</util:properties>
|
||||
|
||||
<context:property-placeholder properties-ref="regionConfigurationSettings"/>
|
||||
|
||||
<gfe:replicated-region id="replicated-with-synchronous-index-updates" index-update-type="${gemfire.index-update-type}"/>
|
||||
|
||||
<gfe:replicated-region id="Compressed" persistent="false">
|
||||
<gfe:replicated-region id="Compressed" persistent="false" scope="${gemfire.scope}">
|
||||
<gfe:compressor ref="testCompressor"/>
|
||||
</gfe:replicated-region>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user