Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <bean id="turbines_table_datasource" class="org.postgresql.ds.PGPoolingDataSource">
- <property name="serverName" value="localhost"/>
- <property name="portNumber" value="5432"/>
- <property name="databaseName" value="testdb" />
- </bean>
- <bean class="org.apache.ignite.configuration.IgniteConfiguration">
- <!-- Enable only some events and leave other ones disabled. -->
- <property name="includeEventTypes">
- <list>
- <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_STARTED"/>
- <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_FINISHED"/>
- <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_FAILED"/>
- </list>
- </property>
- <property name="connectorConfiguration">
- <bean class="org.apache.ignite.configuration.ConnectorConfiguration">
- <property name="jettyPath" value="configuration.xml"/>
- </bean>
- </property>
- <property name="CacheStoreSessionListenerFactories">
- <list>
- <bean class="javax.cache.configuration.FactoryBuilder$SingletonFactory">
- <constructor-arg>
- <bean class="org.apache.ignite.cache.store.jdbc.CacheJdbcStoreSessionListener">
- <!-- Inject external data source. -->
- <property name="dataSource">
- <bean class="org.postgresql.ds.PGPoolingDataSource">
- <property name="serverName" value="localhost"/>
- <property name="portNumber" value="5432"/>
- <property name="databaseName" value="testdb" />
- </bean>
- </property>
- </bean>
- </constructor-arg>
- </bean>
- </list>
- </property>
- <property name="gridName" value="test_cluster"/>
- <property name="localHost" value="localhost"/>
- <property name="cacheConfiguration">
- <list>
- <bean class="org.apache.ignite.configuration.CacheConfiguration">
- <property name="name" value="table_cache"/>
- <property name="cacheMode" value="PARTITIONED"/>
- <property name="atomicityMode" value="TRANSACTIONAL"/>
- <property name="backups" value="0"/>
- <property name="startSize" value="#{100 * 1024 * 1024}"/>
- <property name="cacheStoreFactory">
- <bean class="javax.cache.configuration.FactoryBuilder" factory-method="factoryOf">
- <constructor-arg value="CacheWriteThrough"/>
- </bean>
- </property>
- <property name="readThrough" value="true"/>
- <property name="writeThrough" value="true"/>
- <property name="statisticsEnabled" value="true"/>
- <property name="queryEntities">
- <list>
- <bean class="org.apache.ignite.cache.QueryEntity">
- <property name="keyType" value="MyKey"/>
- <property name="valueType" value="MyValue"/>
- <property name="fields">
- (I don't show it, it is simple configuration)
- </property>
- <property name="indexes">
- <list>
- <bean class="org.apache.ignite.cache.QueryIndex">
- <constructor-arg value="A"/>
- </bean>
- <bean class="org.apache.ignite.cache.QueryIndex">
- <constructor-arg value="B"/>
- </bean>
- <bean class="org.apache.ignite.cache.QueryIndex">
- <constructor-arg value="C"/>
- </bean>
- <bean class="org.apache.ignite.cache.QueryIndex">
- <constructor-arg value="D"/>
- </bean>
Add Comment
Please, Sign In to add comment