Implements JIRA improvement SGF-223 enabling Spring Data GemFire to create GemFire Disk Store directory locations automatically (based on nested <gfe:disk-dir> elements inside the <gfe:disk-store> element specified in Spring config) without the user having to create the disk directories for the location manually, unlike GemFire's native configuration options (such as cache.xml).

This commit is contained in:
John Blum
2014-08-15 15:45:58 -07:00
parent 7137c60485
commit 96cb3775fb
6 changed files with 268 additions and 47 deletions

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:gfe="http://www.springframework.org/schema/gemfire"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
">
<gfe:cache/>
<gfe:disk-store id="DiskStoreOne">
<gfe:disk-dir location="./gemfire/disk-stores/ds1"/>
</gfe:disk-store>
<gfe:disk-store id="DiskStoreTwo">
<gfe:disk-dir location="./gemfire/disk-stores/local/ds2"/>
<gfe:disk-dir location="./gemfire/disk-stores/remote/ds2"/>
</gfe:disk-store>
<gfe:disk-store id="DiskStoreThree">
<gfe:disk-dir location="./gfe/ds/local/store3"/>
</gfe:disk-store>
</beans>