1
<?xml version="1.0" encoding="UTF-8"?>
23
<beans xmlns="http://www.springframework.org/schema/beans"
24
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26
http://www.springframework.org/schema/beans
27
http://www.springframework.org/schema/beans/spring-beans.xsd">
28
<bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
29
<property name="localHost" value="127.0.0.1"/>
31
<property name="cacheConfiguration">
32
<bean class="org.apache.ignite.configuration.CacheConfiguration">
33
<property name="name" value="test-cache"/>
35
<property name="cacheMode" value="REPLICATED"/>
37
<property name="swapEnabled" value="true"/>
39
<property name="evictionPolicy">
40
<bean class="org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy">
41
<property name="maxSize" value="10000"/>
47
<property name="networkTimeout" value="10000"/>
49
<property name="swapSpaceSpi">
50
<bean class="org.apache.ignite.spi.swapspace.file.FileSwapSpaceSpi">
51
<property name="rootFolderPath" value="/Users/yzhdanov/tmp/swap-test"/>
52
<property name="taskQueueCapacity" value="100000"/>
53
<property name="poolSize" value="2"/>
57
<property name="discoverySpi">
58
<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
59
<property name="ipFinder">
60
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
61
<property name="addresses">
63
<value>127.0.0.1:47500</value>
64
<value>127.0.0.1:47501</value>
65
<value>127.0.0.1:47502</value>
66
<value>127.0.0.1:47503</value>
67
<value>127.0.0.1:47504</value>
68
<value>127.0.0.1:47505</value>
69
<value>127.0.0.1:47506</value>
70
<value>127.0.0.1:47507</value>
71
<value>127.0.0.1:47508</value>
72
<value>127.0.0.1:47509</value>