|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<!-- |
| 4 | + Copyright 2019 GridGain Systems, Inc. and Contributors. |
| 5 | +
|
| 6 | + Licensed under the GridGain Community Edition License (the "License"); |
| 7 | + you may not use this file except in compliance with the License. |
| 8 | + You may obtain a copy of the License at |
| 9 | +
|
| 10 | + https://www.gridgain.com/products/software/community-edition/gridgain-community-edition-license |
| 11 | +
|
| 12 | + Unless required by applicable law or agreed to in writing, software |
| 13 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + See the License for the specific language governing permissions and |
| 16 | + limitations under the License. |
| 17 | +--> |
| 18 | + |
| 19 | +<beans xmlns="http://www.springframework.org/schema/beans" |
| 20 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 21 | + xmlns:util="http://www.springframework.org/schema/util" |
| 22 | + xsi:schemaLocation=" |
| 23 | + http://www.springframework.org/schema/beans |
| 24 | + http://www.springframework.org/schema/beans/spring-beans.xsd |
| 25 | + http://www.springframework.org/schema/util |
| 26 | + http://www.springframework.org/schema/util/spring-util.xsd"> |
| 27 | + <bean id="grid.cfg" abstract="true" class="org.apache.ignite.configuration.IgniteConfiguration"> |
| 28 | + <property name="localHost" value="127.0.0.1"/> |
| 29 | + |
| 30 | + <property name="discoverySpi"> |
| 31 | + <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> |
| 32 | + <property name="localAddress" value="127.0.0.1"/> |
| 33 | + <property name="localPort" value="48500"/> |
| 34 | + <property name="ipFinder"> |
| 35 | + <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> |
| 36 | + <property name="addresses"> |
| 37 | + <list> |
| 38 | + <value>127.0.0.1:48500..48503</value> |
| 39 | + </list> |
| 40 | + </property> |
| 41 | + </bean> |
| 42 | + </property> |
| 43 | + <property name="socketTimeout" value="300"/> |
| 44 | + </bean> |
| 45 | + </property> |
| 46 | + |
| 47 | + <property name="communicationSpi"> |
| 48 | + <bean class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi"> |
| 49 | + <property name="localAddress" value="127.0.0.1"/> |
| 50 | + <property name="localPort" value="48100"/> |
| 51 | + </bean> |
| 52 | + </property> |
| 53 | + |
| 54 | + <property name="cacheConfiguration"> |
| 55 | + <list> |
| 56 | + <bean class="org.apache.ignite.configuration.CacheConfiguration"> |
| 57 | + <property name="name" value="custom-affinity"/> |
| 58 | + <property name="affinity"> |
| 59 | + <bean class="org.apache.ignite.internal.processors.affinity.LocalAffinityFunction"/> |
| 60 | + </property> |
| 61 | + </bean> |
| 62 | + </list> |
| 63 | + </property> |
| 64 | + </bean> |
| 65 | +</beans> |
0 commit comments