21 Ekim 2021 Perşembe

XML CacheConfiguration Bean

dataStorageConfiguration Alanı
Örnek
Şöyle yaparız
<?xml version="1.0" encoding="UTF-8"?>
<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">
      <list>
        <bean class="org.apache.ignite.configuration.CacheConfiguration">
          <property name="name" value="TestCache"/>
          <property name="atomicityMode" value="ATOMIC"/>
          <property name="backups" value="1"/>
        </bean>
      </list>
    </property>
    <!-- Enabling Apache Ignite Persistent Store. -->
     <property name="dataStorageConfiguration">
       <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
         <property name="defaultDataRegionConfiguration">
           <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
             <property name="persistenceEnabled" value="true"/>
             <property name="metricsEnabled" value="true"/>
           </bean>
         </property>
       </bean>
    </property>

    <property name="discoverySpi">
     ...
    </property>
  </bean>
</beans>

Hiç yorum yok:

Yorum Gönder

Ignite Transaction Kullanımı

Giriş Bir tablo 3 tane atomicity değerinden birisine sahip olabilir. 1. ATOMIC 2. TRANSACTIONAL 3. TRANSACTIONAL_SNAPSHOT ATOMIC Açıklaması ...