-
Notifications
You must be signed in to change notification settings - Fork 2
/
igniteSpecificCommunication.xml
111 lines (97 loc) · 5.38 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
99
100
101
102
103
104
105
106
107
108
109
110
111
<?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="igniteSpecificCommunication.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="igniteInstanceName" value="igniteSpecificCommunicationTOMProxy"/>
<property name="cacheConfiguration">
<list>
<!-- Communication Caches -->
<!-- Pending authentication request from EidasNode to SpecificProxyService -->
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="nodeSpecificProxyserviceRequestCache"/>
<property name="atomicityMode" value="ATOMIC"/>
<property name="backups" value="1"/>
<property name="expiryPolicyFactory" ref="2_seconds_duration"/>
</bean>
<!-- Pending authentication responses from SpecificProxyService to EidasNode -->
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="specificNodeProxyserviceResponseCache"/>
<property name="atomicityMode" value="ATOMIC"/>
<property name="backups" value="1"/>
<property name="expiryPolicyFactory" ref="2_seconds_duration"/>
</bean>
<!-- Pending requests forwarded to local IDP -->
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="specificMSIdpRequestCorrelationMap"/>
<property name="atomicityMode" value="ATOMIC"/>
<property name="backups" value="1"/>
<property name="expiryPolicyFactory" ref="2_seconds_duration"/>
</bean>
<!-- Pending requests waiting user consent -->
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="specificMSIdpConsentCorrelationMap"/>
<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="TLSv1.2"/>
</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>