|
1 | 1 |
|
2 | 2 | <!-- |
3 | | - Licensed to the Apache Software Foundation (ASF) under one |
4 | | - or more contributor license agreements. See the NOTICE file |
5 | | - distributed with this work for additional information |
6 | | - regarding copyright ownership. The ASF licenses this file |
7 | | - to you under the Apache License, Version 2.0 (the |
8 | | - "License"); you may not use this file except in compliance |
9 | | - with the License. You may obtain a copy of the License at |
10 | | - |
11 | | - http://www.apache.org/licenses/LICENSE-2.0 |
12 | | - |
13 | | - Unless required by applicable law or agreed to in writing, |
14 | | - software distributed under the License is distributed on an |
15 | | - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
16 | | - KIND, either express or implied. See the License for the |
17 | | - specific language governing permissions and limitations |
18 | | - under the License. |
19 | | ---> |
| 3 | + ~ Licensed to the Apache Software Foundation (ASF) under one |
| 4 | + ~ or more contributor license agreements. See the NOTICE file |
| 5 | + ~ distributed with this work for additional information |
| 6 | + ~ regarding copyright ownership. The ASF licenses this file |
| 7 | + ~ to you under the Apache License, Version 2.0 (the |
| 8 | + ~ "License"); you may not use this file except in compliance |
| 9 | + ~ with the License. You may obtain a copy of the License at |
| 10 | + ~ |
| 11 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | + ~ |
| 13 | + ~ Unless required by applicable law or agreed to in writing, |
| 14 | + ~ software distributed under the License is distributed on an |
| 15 | + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | + ~ KIND, either express or implied. See the License for the |
| 17 | + ~ specific language governing permissions and limitations |
| 18 | + ~ under the License. |
| 19 | + --> |
20 | 20 | <beans xmlns="http://www.springframework.org/schema/beans" |
21 | 21 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
22 | 22 | xmlns:context="http://www.springframework.org/schema/context" |
|
51 | 51 | <!-- |
52 | 52 | Managers & pluggable adapters configuration under OSS deployment |
53 | 53 | --> |
54 | | - <bean id="accountManagerImpl" class="com.cloud.user.AccountManagerImpl" > |
55 | | - <property name="UserAuthenticators"> |
| 54 | + <bean id="userAuthenticators" class="com.cloud.utils.component.AdapterList"> |
| 55 | + <property name="Adapters"> |
56 | 56 | <list> |
| 57 | + <ref bean="SHA256SaltedUserAuthenticator"/> |
57 | 58 | <ref bean="MD5UserAuthenticator"/> |
58 | 59 | <ref bean="LDAPUserAuthenticator"/> |
59 | | - </list> |
60 | | - </property> |
61 | | - <property name="SecurityCheckers"> |
62 | | - <list> |
63 | | - <ref bean="domainChecker"/> |
| 60 | + <ref bean="PlainTextUserAuthenticator"/> |
64 | 61 | </list> |
65 | 62 | </property> |
66 | 63 | </bean> |
67 | | - |
68 | | - <bean id="managementServerImpl" class ="com.cloud.server.ManagementServerImpl"> |
69 | | - <property name="UserAuthenticators"> |
| 64 | + <bean id="userPasswordEncoders" class="com.cloud.utils.component.AdapterList"> |
| 65 | + <property name="Adapters"> |
70 | 66 | <list> |
| 67 | + <ref bean="SHA256SaltedUserAuthenticator"/> |
71 | 68 | <ref bean="MD5UserAuthenticator"/> |
72 | 69 | <ref bean="LDAPUserAuthenticator"/> |
73 | | - </list> |
74 | | - </property> |
75 | | - <property name="HostAllocators"> |
76 | | - <list> |
77 | | - <ref bean="FirstFitRouting"/> |
| 70 | + <ref bean="PlainTextUserAuthenticator"/> |
78 | 71 | </list> |
79 | 72 | </property> |
80 | 73 | </bean> |
81 | 74 |
|
82 | | - <bean id="storageManagerImpl" class="com.cloud.storage.StorageManagerImpl"> |
83 | | - <property name="StoragePoolAllocators"> |
84 | | - <list> |
85 | | - <ref bean="LocalStoragePoolAllocator"/> |
86 | | - <ref bean="clusterScopeStoragePoolAllocator"/> |
87 | | - <ref bean="zoneWideStoragePoolAllocator"/> |
88 | | - <ref bean="garbageCollectingStoragePoolAllocator"/> |
89 | | - </list> |
90 | | - </property> |
91 | | - </bean> |
92 | 75 |
|
93 | | - <bean id="FirstFitPlanner" class="com.cloud.deploy.FirstFitPlanner"> |
94 | | - <property name="name" value="First Fit"/> |
95 | | - <property name="StoragePoolAllocators"> |
96 | | - <list> |
97 | | - <ref bean="LocalStoragePoolAllocator"/> |
98 | | - <ref bean="clusterScopeStoragePoolAllocator"/> |
99 | | - <ref bean="zoneWideStoragePoolAllocator"/> |
100 | | - <ref bean="garbageCollectingStoragePoolAllocator"/> |
101 | | - </list> |
102 | | - </property> |
103 | | - <property name="HostAllocators"> |
| 76 | + <bean id="securityCheckers" class="com.cloud.utils.component.AdapterList"> |
| 77 | + <property name="Adapters"> |
104 | 78 | <list> |
105 | | - <ref bean="FirstFitRouting"/> |
| 79 | + <ref bean="domainChecker"/> |
106 | 80 | </list> |
107 | 81 | </property> |
108 | 82 | </bean> |
109 | 83 |
|
110 | | - <bean id="resourceManagerImpl" class="com.cloud.resource.ResourceManagerImpl" > |
111 | | - <property name="PodAllocators"> |
112 | | - <list> |
113 | | - <ref bean="UserConcentratedAllocator"/> |
114 | | - </list> |
115 | | - </property> |
116 | | - <property name="Discoverers"> |
| 84 | + <!-- Resource discoverers --> |
| 85 | + <bean id="resourceDiscoverers" class="com.cloud.utils.component.AdapterList"> |
| 86 | + <property name="Adapters"> |
117 | 87 | <list> |
118 | 88 | <ref bean="SimulatorDiscoverer"/> |
119 | | - <ref bean="XcpServerDiscoverer"/> |
120 | 89 | <ref bean="SimulatorSecondaryDiscoverer"/> |
| 90 | + <ref bean="XcpServerDiscoverer"/> |
121 | 91 | <ref bean="SecondaryStorageDiscoverer"/> |
122 | 92 | <ref bean="KvmServerDiscoverer"/> |
123 | 93 | <ref bean="LxcServerDiscoverer"/> |
124 | | - |
125 | | - <!-- |
126 | | - <ref bean="BareMetalDiscoverer"/> |
127 | | - --> |
128 | | - |
129 | 94 | <ref bean="OvmDiscoverer"/> |
130 | 95 | </list> |
131 | 96 | </property> |
132 | 97 | </bean> |
133 | 98 |
|
134 | | - <bean id="highAvailabilityManagerExtImpl" class="com.cloud.ha.HighAvailabilityManagerExtImpl" > |
135 | | - <property name="Investigators"> |
| 99 | + <!-- HA adapters --> |
| 100 | + <bean id="haInvestigators" class="com.cloud.utils.component.AdapterList"> |
| 101 | + <property name="Adapters"> |
136 | 102 | <list> |
137 | 103 | <ref bean="CheckOnAgentInvestigator"/> |
138 | 104 | <ref bean="XenServerInvestigator"/> |
139 | 105 | <ref bean="UserVmDomRInvestigator"/> |
140 | 106 | <ref bean="ManagementIPSystemVMInvestigator"/> |
141 | 107 | </list> |
142 | 108 | </property> |
143 | | - <property name="FenceBuilders"> |
| 109 | + </bean> |
| 110 | + |
| 111 | + <bean id="haFenceBuilders" class="com.cloud.utils.component.AdapterList"> |
| 112 | + <property name="Adapters"> |
144 | 113 | <list> |
145 | 114 | <ref bean="XenServerFencer"/> |
146 | 115 | <ref bean="KVMFencer"/> |
|
149 | 118 | </property> |
150 | 119 | </bean> |
151 | 120 |
|
152 | | - <bean id="clusteredVirtualMachineManagerImpl" class="com.cloud.vm.ClusteredVirtualMachineManagerImpl" > |
153 | | - <property name="HostAllocators"> |
154 | | - <list> |
155 | | - <ref bean="FirstFitRouting"/> |
156 | | - </list> |
157 | | - </property> |
158 | | - <property name="Planners"> |
| 121 | + <!-- Deployment/allocation adapters --> |
| 122 | + <bean id="deploymentPlanners" class="com.cloud.utils.component.AdapterList"> |
| 123 | + <property name="Adapters"> |
159 | 124 | <list> |
160 | 125 | <ref bean="FirstFitPlanner" /> |
161 | 126 | <ref bean="UserDispersingPlanner" /> |
|
164 | 129 | <!-- |
165 | 130 | <ref bean="BareMetalPlanner" /> |
166 | 131 | --> |
| 132 | + </list> |
| 133 | + </property> |
| 134 | + </bean> |
167 | 135 |
|
| 136 | + <bean id="podAllocators" class="com.cloud.utils.component.AdapterList"> |
| 137 | + <property name="Adapters"> |
| 138 | + <list> |
| 139 | + <ref bean="UserConcentratedAllocator"/> |
168 | 140 | </list> |
169 | 141 | </property> |
170 | 142 | </bean> |
171 | 143 |
|
172 | | - <bean id="networkManagerImpl" class="com.cloud.network.NetworkManagerImpl" > |
173 | | - <property name="NetworkGurus"> |
| 144 | + <bean id="hostAllocators" class="com.cloud.utils.component.AdapterList"> |
| 145 | + <property name="Adapters"> |
174 | 146 | <list> |
175 | | - <ref bean="StorageNetworkGuru"/> |
176 | | - <ref bean="ExternalGuestNetworkGuru"/> |
177 | | - <ref bean="PublicNetworkGuru"/> |
178 | | - <ref bean="PodBasedNetworkGuru"/> |
179 | | - <ref bean="DirectPodBasedNetworkGuru"/> |
180 | | - <ref bean="ControlNetworkGuru"/> |
181 | | - <ref bean="DirectNetworkGuru"/> |
182 | | - <ref bean="OvsGuestNetworkGuru"/> |
183 | | - <ref bean="PrivateNetworkGuru"/> |
| 147 | + <ref bean="FirstFitRouting"/> |
184 | 148 | </list> |
185 | 149 | </property> |
186 | | - <property name="NetworkElements"> |
| 150 | + </bean> |
| 151 | + |
| 152 | + <bean id="storagePoolAllocators" class="com.cloud.utils.component.AdapterList"> |
| 153 | + <property name="Adapters"> |
187 | 154 | <list> |
188 | | - <ref bean="VirtualRouter"/> |
189 | | - <ref bean="Ovs"/> |
190 | | - <ref bean="SecurityGroupProvider"/> |
191 | | - <ref bean="VpcVirtualRouter"/> |
192 | | - <!-- |
193 | | - <ref bean="BareMetalDhcp"/> |
194 | | - <ref bean="BareMetalPxe"/> |
195 | | - <ref bean="BareMetalUserdata"/> |
196 | | - --> |
| 155 | + <ref bean="LocalStoragePoolAllocator"/> |
| 156 | + <ref bean="clusterScopeStoragePoolAllocator"/> |
| 157 | + <ref bean="zoneWideStoragePoolAllocator"/> |
| 158 | + <ref bean="garbageCollectingStoragePoolAllocator"/> |
197 | 159 | </list> |
198 | 160 | </property> |
199 | | - <property name="IpDeployers"> |
| 161 | + </bean> |
| 162 | + |
| 163 | + <!-- Networking adapters --> |
| 164 | + <bean id="ipDeployers" class="com.cloud.utils.component.AdapterList"> |
| 165 | + <property name="Adapters"> |
200 | 166 | <list> |
201 | 167 | <ref bean="elasticLoadBalancerElement"/> |
202 | 168 | <ref bean="VirtualRouter"/> |
203 | 169 | <ref bean="VpcVirtualRouter"/> |
204 | 170 | </list> |
205 | 171 | </property> |
206 | | - <property name="DhcpProviders"> |
| 172 | + </bean> |
| 173 | + |
| 174 | + <bean id="dhcpProviders" class="com.cloud.utils.component.AdapterList"> |
| 175 | + <property name="Adapters"> |
207 | 176 | <list> |
208 | 177 | <ref bean="VirtualRouter"/> |
209 | 178 | <ref bean="VpcVirtualRouter"/> |
|
214 | 183 | </property> |
215 | 184 | </bean> |
216 | 185 |
|
217 | | - <bean id="networkModelImpl" class="com.cloud.network.NetworkModelImpl"> |
218 | | - <property name="NetworkElements"> |
| 186 | + <bean id="networkGurus" class="com.cloud.utils.component.AdapterList"> |
| 187 | + <property name="Adapters"> |
| 188 | + <list> |
| 189 | + <ref bean="StorageNetworkGuru"/> |
| 190 | + <ref bean="ExternalGuestNetworkGuru"/> |
| 191 | + <ref bean="PublicNetworkGuru"/> |
| 192 | + <ref bean="PodBasedNetworkGuru"/> |
| 193 | + <ref bean="DirectPodBasedNetworkGuru"/> |
| 194 | + <ref bean="ControlNetworkGuru"/> |
| 195 | + <ref bean="DirectNetworkGuru"/> |
| 196 | + <ref bean="OvsGuestNetworkGuru"/> |
| 197 | + <ref bean="PrivateNetworkGuru"/> |
| 198 | + </list> |
| 199 | + </property> |
| 200 | + </bean> |
| 201 | + |
| 202 | + <bean id="networkElements" class="com.cloud.utils.component.AdapterList"> |
| 203 | + <property name="Adapters"> |
219 | 204 | <list> |
220 | 205 | <ref bean="VirtualRouter"/> |
221 | 206 | <ref bean="Ovs"/> |
|
0 commit comments