| <?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. |
| --> |
| |
| |
| <!-- cacheserver1_TradeKey.xml |
| Configures a server to for clients at port HOST_PORT1. |
| --> |
| |
| <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="HOST_PORT1"/> |
| <region name="TradeKeyRegion"> |
| <region-attributes data-policy="partition"> |
| <partition-attributes total-num-buckets="10"> |
| <partition-resolver> |
| <class-name>javaobject.TradeKeyResolver</class-name> |
| </partition-resolver> |
| </partition-attributes> |
| </region-attributes> |
| <entry> |
| <key> |
| <declarable> |
| <class-name>javaobject.TradeKey</class-name> |
| <parameter name="m_id"> |
| <string>0</string> |
| </parameter> |
| <parameter name="m_accountid"> |
| <string>0</string> |
| </parameter> |
| </declarable> |
| </key> |
| <value> |
| <string>new-trade</string> |
| </value> |
| </entry> |
| </region> |
| <function-service> |
| <function> |
| <class-name>javaobject.FEOnRegionPrSHOP</class-name> |
| </function> |
| <function> |
| <class-name>javaobject.FEOnRegionPrSHOP_OptimizeForWrite</class-name> |
| </function> |
| <function> |
| <class-name>javaobject.MultiGetFunction</class-name> |
| </function> |
| </function-service> |
| </cache> |