-
Notifications
You must be signed in to change notification settings - Fork 0
/
igniteSpecificCommunication.xml
98 lines (98 loc) · 5.45 KB
/
igniteSpecificCommunication.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="UTF-8"?>
<!--
# Copyright (c) 2017 European Commission
# Licensed under the EUPL, Version 1.2 or – as soon they will be
# approved by the European Commission - subsequent versions of the
# EUPL (the "Licence");
# You may not use this work except in compliance with the Licence.
# You may obtain a copy of the Licence at:
# * https://joinup.ec.europa.eu/page/eupl-text-11-12
# *
# Unless required by applicable law or agreed to in writing, software
# distributed under the Licence is distributed on an "AS IS" basis,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the Licence for the specific language governing permissions and limitations under the Licence.
-->
<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="igniteSpecificCommunication.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="igniteInstanceName" value="igniteSpecificCommunicationTOMProxy" />
<property name="cacheConfiguration">
<list>
<!--Specific Communication Caches-->
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="specificNodeConnectorRequestCache" />
<property name="atomicityMode" value="ATOMIC" />
<property name="backups" value="1" />
<property name="expiryPolicyFactory" ref="2_seconds_duration" />
</bean>
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="nodeSpecificConnectorResponseCache" />
<property name="atomicityMode" value="ATOMIC" />
<property name="backups" value="1" />
<property name="expiryPolicyFactory" ref="2_seconds_duration" />
</bean>
<!-- specificMSSpRequestCorrelationMap -->
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="specificMSSpRequestCorrelationMap"/>
<property name="atomicityMode" value="ATOMIC"/>
<property name="backups" value="1"/>
<property name="expiryPolicyFactory" ref="2_seconds_duration"/>
</bean>
</list>
</property>
<property name="sslContextFactory">
<bean class="org.apache.ignite.ssl.SslContextFactory">
<property name="keyStoreFilePath" value="src/test/resources/mock_eidasnode/mock_keys/ignite-keys.jks" />
<property name="keyStorePassword" value="123456" />
<property name="trustStoreFilePath" value="src/test/resources/mock_eidasnode/mock_keys/ignite-trust.jks" />
<property name="trustStorePassword" value="123456" />
<property name="protocol" value="TLS" />
</bean>
</property>
<!-- Explicitly configure TCP discovery SPI to provide list of initial nodes. -->
<property name="discoverySpi">
<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
<property name="ipFinder">
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
<property name="addresses">
<list>
<!--
Explicitly specifying address of a local node to let it start and
operate normally even if there is no more nodes in the cluster.
You can also optionally specify an individual port or port range.
-->
<value>127.0.0.1</value>
</list>
</property>
</bean>
</property>
</bean>
</property>
<!-- Disable thin client access -->
<property name="clientConnectorConfiguration">
<bean class="org.apache.ignite.configuration.ClientConnectorConfiguration">
<property name="thinClientEnabled" value="false" />
<property name="odbcEnabled" value="false" />
<property name="jdbcEnabled" value="false" />
</bean>
</property>
</bean>
<!--
Initialize property configurer so we can reference environment variables.
-->
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_FALLBACK" />
<property name="searchSystemEnvironment" value="true" />
</bean>
<!--
Defines expiry policy based on moment of creation for ignite cache.
-->
<bean id="2_seconds_duration" class="javax.cache.expiry.CreatedExpiryPolicy" factory-method="factoryOf" scope="prototype">
<constructor-arg>
<bean class="javax.cache.expiry.Duration">
<constructor-arg value="SECONDS"/>
<constructor-arg value="2"/>
</bean>
</constructor-arg>
</bean>
</beans>