| <?xml version="1.0"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| |
| <cache xmlns="http://geode.apache.org/schema/cache" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://geode.apache.org/schema/cache http://geode.apache.org/schema/cache/cache-1.0.xsd" |
| version="1.0"> |
| <cache-server port="40404"/> |
| <region name="exampleRegion"> |
| <region-attributes scope="distributed-ack" data-policy="replicate"/> |
| </region> |
| |
| <region name="BankAccounts"> |
| <region-attributes scope="distributed-ack" data-policy="replicate"/> |
| <entry> |
| <key> |
| <string>new-bankaccount</string> |
| </key> |
| <value> |
| <declarable> |
| <class-name>javaobject.BankAccount</class-name> |
| <parameter name="customerId"> |
| <string>100</string> |
| </parameter> |
| <parameter name="accountId"> |
| <string>1000</string> |
| </parameter> |
| </declarable> |
| </value> |
| </entry> |
| </region> |
| |
| <region name="root"> |
| <region-attributes scope="distributed-ack" data-policy="replicate"/> |
| <region name="listenerWriterLoader"> |
| <region-attributes scope="distributed-ack"> |
| <!--cache-loader> |
| <class-name>cacheRunner.StringLoader</class-name> |
| </cache-loader--> |
| </region-attributes> |
| <entry> |
| <key><string>entry1</string></key> |
| <value><string>1.0</string></value> |
| </entry> |
| <region name="sub1"> |
| <region-attributes scope="local"> |
| </region-attributes> |
| </region> |
| </region> |
| </region> |
| |
| <region name="exampleRegion0"> |
| <region-attributes scope="distributed-ack" data-policy="replicate"/> |
| </region> |
| |
| <region name="exampleRegion1"> |
| <region-attributes scope="distributed-ack" data-policy="replicate"/> |
| </region> |
| <region name="exampleputgetregion"> |
| <region-attributes scope="distributed-ack" data-policy="replicate"/> |
| </region> |
| <region name="tradeOrder"> |
| <region-attributes scope="distributed-ack" data-policy="replicate"/> |
| <entry> |
| <key> |
| <string>new-trade</string> |
| </key> |
| <value> |
| <declarable> |
| <class-name>javaobject.TradeOrder</class-name> |
| <parameter name="price"> |
| <string>200</string> |
| </parameter> |
| <parameter name="pkid"> |
| <string>A0</string> |
| </parameter> |
| </declarable> |
| </value> |
| </entry> |
| </region> |
| <region name="partition_region"> |
| <region-attributes scope="distributed-ack" data-policy="replicate"/> |
| </region> |
| <function-service> |
| <function> |
| <class-name>javaobject.MultiGetFunctionI</class-name> |
| </function> |
| </function-service> |
| </cache> |