<?xml version="1.0" encoding="UTF-8"?>

<!-- This file was generated by Ignite Web Console (‎11‎/‎01‎/‎2017‎ ‎16‎:‎10) -->

<beans xmlns="http://www.springframework.org/schema/beans"
       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/util
                           http://www.springframework.org/schema/util/spring-util.xsd">

    <bean class="org.apache.ignite.configuration.IgniteConfiguration">
        <property name="igniteInstanceName" value="springDataNode"/>
        <!-- Set to true to enable distributed class loading for examples, default is false. -->
        <property name="peerClassLoadingEnabled" value="true"/>

        <property name="discoverySpi">
            <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <property name="ipFinder">
                    <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
                        <property name="addresses">
                            <list>
                                <value>127.0.0.1:47500..47510</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>


        <!--<property name="binaryConfiguration">-->
            <!--<bean class="org.apache.ignite.configuration.BinaryConfiguration">-->
                <!--<property name="compactFooter" value="false"/>-->
            <!--</bean>-->
        <!--</property>-->

        <!-- Durable memory configuration. -->
        <property name="dataStorageConfiguration">
            <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
                <property name="dataRegionConfigurations">
                    <list>
                        <!--
                            Defining a data region that will consume up to 500 MB of RAM and
                            will have eviction and persistence enabled.
                        -->
                        <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
                            <!-- Custom region name. -->
                            <property name="name" value="500MB_Region"/>

                            <!-- 100 MB initial size. -->
                            <property name="initialSize" value="#{100L * 1024 * 1024}"/>

                            <!-- 500 MB maximum size. -->
                            <property name="maxSize" value="#{500L * 1024 * 1024}"/>

                            <!-- Enabling persistence for the region. -->
                            <property name="persistenceEnabled" value="true"/>
                        </bean>
                    </list>
                </property>
            </bean>
        </property>


        <!--// Setting SQL schema for the cache.-->
        <!--ccfg.setIndexedTypes(Long.class, Person.class);-->



        <property name="cacheConfiguration">
            <list>
                <bean class="org.apache.ignite.configuration.CacheConfiguration">
                    <property name="name" value="PersonCache"/>
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="atomicityMode" value="ATOMIC"/>
                    <property name="dataRegionName" value="500MB_Region"/>


                    <!--<property name="indexedTypes">-->
                        <!--<list>-->
                            <!--<value>java.lang.Long</value>-->
                            <!--<value>java.lang.Long</value>-->
                        <!--</list>-->
                    <!--</property>-->

                </bean>

            </list>
        </property>
    </bean>
</beans>