Advertisement
Guest User

Apache Ignite Config

a guest
Apr 7th, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.71 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
  4.     xsi:schemaLocation="
  5.        http://www.springframework.org/schema/beans
  6.        http://www.springframework.org/schema/beans/spring-beans.xsd
  7.        http://www.springframework.org/schema/util
  8.        http://www.springframework.org/schema/util/spring-util.xsd">
  9.     <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
  10.         <property name="marshaller">
  11.             <bean class="org.apache.ignite.marshaller.optimized.OptimizedMarshaller">
  12.                 <property name="requireSerializable" value="true" />
  13.             </bean>
  14.         </property>
  15.         <property name="cacheConfiguration">
  16.             <list>
  17.                 <bean id="myCache" class="org.apache.ignite.configuration.CacheConfiguration">
  18.                     <property name="name" value="myCache" />
  19.                     <property name="cacheMode" value="PARTITIONED" />
  20.                     <property name="atomicityMode" value="ATOMIC" />
  21.                     <property name="distributionMode" value="PARTITIONED_ONLY" />
  22.                     <property name="backups" value="0" />
  23.                     <property name="memoryMode" value="OFFHEAP_TIERED"/>
  24.                     <property name="offHeapMaxMemory" value="#{81 * 1024L * 1024L * 1024L}" />
  25.                     <property name="startSize" value="1000000" />
  26.                     <property name="queryIndexEnabled" value="true" />
  27.                     <property name="queryConfiguration">
  28.                         <bean class="org.apache.ignite.configuration.CacheQueryConfiguration">
  29.                             <property name="indexPrimitiveKey" value="true" />
  30.                             <property name="indexPrimitiveValue" value="true" />
  31.                         </bean>
  32.                     </property>
  33.                 </bean>
  34.             </list>
  35.         </property>
  36.     </bean>
  37. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement