11 Ekim 2021 Pazartesi

XML TcpDiscoverySpi Bean

Giriş
IgniteConfiguration.discoverySpi alanına atanır

Ö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 class="org.apache.ignite.configuration.IgniteConfiguration">
    <property name="workDirectory" value="/gridgain-dev/work"/>
    <property name="shutdownPolicy" value="GRACEFUL"/>
    <property name="igniteInstanceName" value="ScioCardio Gridgain Dev"/>

    <property name="dataStorageConfiguration">
      <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
        ...
      </bean>
    </property>

    <property name="discoverySpi">
      <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
        <property name="ipFinder">
          <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.
            TcpDiscoveryKubernetesIpFinder">
            <property name="namespace" value="gridgain-dev"/>
            <property name="serviceName" value="gridgain-service-dev"/>
          </bean>
        </property>
      </bean>
     </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ı ...