SGF-374 - Specifying a disk-store on a GatewayHub forces the GatewayHub to be persistent.
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?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"
|
||||
xmlns:util="http://www.springframework.org/schema/util"
|
||||
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
|
||||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
|
||||
">
|
||||
|
||||
<util:properties id="gemfireProperties">
|
||||
<prop key="name">GatewayHubNamespaceTest</prop>
|
||||
<prop key="mcast-port">0</prop>
|
||||
<prop key="log-level">warning</prop>
|
||||
</util:properties>
|
||||
|
||||
<gfe:cache properties-ref="gemfireProperties"/>
|
||||
|
||||
<gfe:replicated-region id="Example" persistent="false" enable-gateway="true" hub-id="testGatewayHub"/>
|
||||
|
||||
<gfe:disk-store id="testGatewayQueueDiskStore" auto-compact="true" allow-force-compaction="true" queue-size="50">
|
||||
<gfe:disk-dir location="./gemfire/GatewayHubNamespaceTest/Gateway/Queue"/>
|
||||
</gfe:disk-store>
|
||||
|
||||
<gfe:gateway-hub id="testGatewayHub" bind-address="localhost" manual-start="true" port="45123"
|
||||
socket-buffer-size="16384" startup-policy="primary">
|
||||
<gfe:gateway gateway-id="gateway1" concurrency-level="8" order-policy="thread" socket-buffer-size="65536">
|
||||
<gfe:gateway-listener>
|
||||
<bean class="org.springframework.data.gemfire.config.GatewayHubNamespaceTest.TestGatewayListener"/>
|
||||
</gfe:gateway-listener>
|
||||
<gfe:gateway-queue alert-threshold="99" batch-size="3" batch-time-interval="10"
|
||||
disk-store-ref="testGatewayQueueDiskStore" enable-batch-conflation="true"
|
||||
maximum-queue-memory="5" persistent="false"/>
|
||||
</gfe:gateway>
|
||||
<gfe:gateway gateway-id="gateway2">
|
||||
<gfe:gateway-endpoint endpoint-id="endpoint1" host="localhost" port="1234"/>
|
||||
<gfe:gateway-endpoint endpoint-id="endpoint2" host="localhost" port="4321"/>
|
||||
</gfe:gateway>
|
||||
</gfe:gateway-hub>
|
||||
|
||||
</beans>
|
||||
Reference in New Issue
Block a user