Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-16586

Provide named parameters for Cdc streamers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.13
    • None

    Description

      Currently, only indexed parameters value can be provided for Cdc streamers.
      We should support named parameters.

      IgniteToIgniteCdcStreamer

          <bean id="cdc.streamer" class="org.apache.ignite.cdc.IgniteToIgniteCdcStreamer">
              <constructor-arg index="0">
                  <bean class="org.apache.ignite.configuration.IgniteConfiguration">
                      <property name="igniteInstanceName" value="ignite-2029-cdc-client" />
                      <property name="clientMode" value="true" />
                      <property name="peerClassLoadingEnabled" value="true" />
                      <property name="localHost" value="127.0.0.1" />
      
                      <property name="discoverySpi">
                          <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                              <property name="localPort" value="47600" />
                              <property name="ipFinder">
                                  <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                                      <property name="addresses"
                                                value="127.0.0.1:47600..47610" />
                                  </bean>
                              </property>
                              <property name="joinTimeout" value="10000" />
                          </bean>
                      </property>
                  </bean>
              </constructor-arg>
              <constructor-arg index="1" value="false" />
              <constructor-arg index="2">
                  <util:list>
                      <bean class="java.lang.String">
                          <constructor-arg type="String" value="terminator" />
                      </bean>
                  </util:list>
              </constructor-arg>
              <constructor-arg index="3" value="256" />
          </bean>
      
      		    <bean id="cdc.streamer" class="org.apache.ignite.cdc.kafka.IgniteToKafkaCdcStreamer">
      			<constructor-arg name="topic" value="ignite" />
      			<constructor-arg name="kafkaParts" value="16" />
      			<constructor-arg name="caches">
      			    <util:list>
      				<bean class="java.lang.String">
      				    <constructor-arg type="String" value="terminator" />
      				</bean>
      			    </util:list>
      			</constructor-arg>
      			<constructor-arg name="maxBatchSize" value="256" />
      			<constructor-arg name="onlyPrimary" value="false" />
      			<constructor-arg name="kafkaProps" ref="kafkaProperties" />
      		    </bean>
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nizhikov Nikolay Izhikov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: