SGF-657 - Add missing configuration support for Off-Heap.

This commit is contained in:
John Blum
2017-08-08 13:09:17 -04:00
parent b6ab9103d5
commit 31cf04aead
15 changed files with 495 additions and 200 deletions

View File

@@ -3,11 +3,11 @@
xmlns:gfe="http://www.springframework.org/schema/gemfire"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
default-lazy-init="true"
xsi:schemaLocation="
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
default-lazy-init="true">
<bean class="org.springframework.data.gemfire.test.GemfireTestBeanPostProcessor"/>
@@ -35,6 +35,8 @@
<gfe:cache id="heap-tuned-cache" properties-ref="gemfireProperties" critical-heap-percentage="70.0" eviction-heap-percentage="60.0"/>
<gfe:cache id="off-heap-tuned-cache" properties-ref="gemfireProperties" critical-off-heap-percentage="90.0" eviction-off-heap-percentage="50.0"/>
<gfe:cache id="no-bean-factory-locator-cache" properties-ref="gemfireProperties" use-bean-factory-locator="false"/>
<gfe:client-cache id="client-cache-with-name"/>

View File

@@ -41,6 +41,7 @@
initial-capacity="10"
key-constraint="java.lang.String"
load-factor="0.90"
off-heap="true"
value-constraint="java.lang.String"
/>

View File

@@ -20,6 +20,8 @@
<util:properties id="props">
<prop key="copies">1</prop>
<prop key="offHeap">true</prop>
<prop key="statistics">true</prop>
<prop key="totalBuckets">4</prop>
</util:properties>
@@ -29,8 +31,8 @@
<gfe:partitioned-region id="simple"/>
<gfe:partitioned-region id="options" name="redundant" copies="${copies}" statistics="true" total-buckets="${totalBuckets}"
close="true" destroy="false">
<gfe:partitioned-region id="options" name="redundant" copies="${copies}" off-heap="${offHeap}"
statistics="${statistics}" total-buckets="${totalBuckets}" close="true" destroy="false">
<gfe:partition-resolver>
<bean class="org.springframework.data.gemfire.SimplePartitionResolver"/>
</gfe:partition-resolver>

View File

@@ -50,6 +50,7 @@
key-constraint="java.lang.String"
load-factor="0.5"
multicast-enabled="true"
off-heap="true"
scope="global"
value-constraint="java.lang.String"/>