Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- 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.
- -->
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd">
- <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
- <property name="cacheConfiguration">
- <bean class="org.apache.ignite.configuration.CacheConfiguration">
- <property name="name" value="ScenarioCache"/>
- <property name="queryEntities">
- <list>
- <bean class="org.apache.ignite.cache.QueryEntity">
- <property name="keyType" value="Scenario"/>
- <property name="valueType" value="Result"/>
- <property name="fields">
- <map>
- <entry key="val1" value="java.lang.Double"/>
- <entry key="val2" value="java.lang.Double"/>
- <entry key="val3" value="java.lang.Double"/>
- <entry key="val4" value="java.lang.Double"/>
- <entry key="val5" value="java.lang.Double"/>
- <entry key="val6" value="java.lang.Double"/>
- <entry key="val7" value="java.lang.Double"/>
- <entry key="val8" value="java.lang.Double"/>
- <entry key="result" value="java.lang.Boolean"/>
- <entry key="result2" value="java.lang.Double"/>
- </map>
- </property>
- <property name="keyFields">
- <set>
- <value>val1</value>
- <value>val2</value>
- <value>val3</value>
- <value>val4</value>
- <value>val5</value>
- <value>val6</value>
- <value>val7</value>
- <value>val8</value>
- </set>
- </property>
- <!-- Defining indexed fields.-->
- <property name="indexes">
- <list>
- <bean class="org.apache.ignite.cache.QueryIndex">
- <constructor-arg>
- <list>
- <value>val1</value>
- <value>val2</value>
- <value>val3</value>
- <value>val4</value>
- <value>val5</value>
- <value>val6</value>
- <value>val7</value>
- <value>val8</value>
- </list>
- </constructor-arg>
- <constructor-arg value="SORTED"/>
- </bean>
- </list>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- <!-- Enabling Apache Ignite Persistent Store. -->
- <property name="dataStorageConfiguration">
- <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
- <!-- set the size of wal segments to 2GB -->
- <property name="walSegmentSize" value="#{500 * 1024 * 1024}"/>
- <!--property name="maxWalArchiveSize" value="#{15000 * 1024 * 1024}"/-->
- <property name="defaultDataRegionConfiguration">
- <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
- <property name="persistenceEnabled" value="true"/>
- <property name="name" value="Default_Region"/>
- <!-- Setting the size of the default region to 4GB. -->
- <property name="maxSize" value="#{20L * 1024 * 1024 * 1024}"/>
- <property name="checkpointPageBufferSize" value="#{10192L * 1024 * 1024}"/>
- <!--property name="writeThrottlingEnabled" value="true"/-->
- </bean>
- </property>
- <property name="storagePath" value="/media/wolfgang/0d4926b4-0481-48b7-aa78-cb6c0242b3b3/ApacheIgniteStore"/>
- <property name="walPath" value="/media/storage/Volume1/ApacheIgniteWalFiles/wal"/>
- <property name="walArchivePath" value="/media/storage/Volume1/ApacheIgniteWalFiles/wal-archive"/>
- <property name="walMode" value="BACKGROUND"/>
- </bean>
- </property>
- <!-- Explicitly configure TCP discovery SPI to provide a list of initial nodes. -->
- <property name="discoverySpi">
- <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
- <property name="ipFinder">
- <!-- Uncomment static IP finder to enable static-based discovery of initial nodes. -->
- <!--<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">-->
- <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
- <property name="addresses">
- <list>
- <!-- In distributed environment, replace with actual host IP address. -->
- <value>127.0.0.1:47500..47502</value>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </property>
- </bean>
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement