|
16 | 16 | // under the License. |
17 | 17 | package com.cloud.configuration; |
18 | 18 |
|
| 19 | +import javax.inject.Inject; |
| 20 | +import javax.naming.ConfigurationException; |
| 21 | +import java.net.URI; |
| 22 | +import java.net.URISyntaxException; |
| 23 | +import java.sql.Date; |
| 24 | +import java.sql.PreparedStatement; |
| 25 | +import java.util.ArrayList; |
| 26 | +import java.util.Arrays; |
| 27 | +import java.util.Collection; |
| 28 | +import java.util.HashMap; |
| 29 | +import java.util.HashSet; |
| 30 | +import java.util.Iterator; |
| 31 | +import java.util.List; |
| 32 | +import java.util.Map; |
| 33 | +import java.util.Map.Entry; |
| 34 | +import java.util.Set; |
| 35 | +import java.util.UUID; |
| 36 | +import org.apache.cloudstack.acl.SecurityChecker; |
| 37 | +import org.apache.cloudstack.affinity.AffinityGroup; |
| 38 | +import org.apache.cloudstack.affinity.AffinityGroupService; |
| 39 | +import org.apache.cloudstack.affinity.dao.AffinityGroupDao; |
| 40 | +import org.apache.cloudstack.api.command.admin.config.UpdateCfgCmd; |
| 41 | +import org.apache.cloudstack.api.command.admin.network.CreateManagementNetworkIpRangeCmd; |
| 42 | +import org.apache.cloudstack.api.command.admin.network.CreateNetworkOfferingCmd; |
| 43 | +import org.apache.cloudstack.api.command.admin.network.DeleteManagementNetworkIpRangeCmd; |
| 44 | +import org.apache.cloudstack.api.command.admin.network.DeleteNetworkOfferingCmd; |
| 45 | +import org.apache.cloudstack.api.command.admin.network.UpdateNetworkOfferingCmd; |
| 46 | +import org.apache.cloudstack.api.command.admin.offering.CreateDiskOfferingCmd; |
| 47 | +import org.apache.cloudstack.api.command.admin.offering.CreateServiceOfferingCmd; |
| 48 | +import org.apache.cloudstack.api.command.admin.offering.DeleteDiskOfferingCmd; |
| 49 | +import org.apache.cloudstack.api.command.admin.offering.DeleteServiceOfferingCmd; |
| 50 | +import org.apache.cloudstack.api.command.admin.offering.UpdateDiskOfferingCmd; |
| 51 | +import org.apache.cloudstack.api.command.admin.offering.UpdateServiceOfferingCmd; |
| 52 | +import org.apache.cloudstack.api.command.admin.pod.DeletePodCmd; |
| 53 | +import org.apache.cloudstack.api.command.admin.pod.UpdatePodCmd; |
| 54 | +import org.apache.cloudstack.api.command.admin.region.CreatePortableIpRangeCmd; |
| 55 | +import org.apache.cloudstack.api.command.admin.region.DeletePortableIpRangeCmd; |
| 56 | +import org.apache.cloudstack.api.command.admin.region.ListPortableIpRangesCmd; |
| 57 | +import org.apache.cloudstack.api.command.admin.vlan.CreateVlanIpRangeCmd; |
| 58 | +import org.apache.cloudstack.api.command.admin.vlan.DedicatePublicIpRangeCmd; |
| 59 | +import org.apache.cloudstack.api.command.admin.vlan.DeleteVlanIpRangeCmd; |
| 60 | +import org.apache.cloudstack.api.command.admin.vlan.ReleasePublicIpRangeCmd; |
| 61 | +import org.apache.cloudstack.api.command.admin.zone.CreateZoneCmd; |
| 62 | +import org.apache.cloudstack.api.command.admin.zone.DeleteZoneCmd; |
| 63 | +import org.apache.cloudstack.api.command.admin.zone.UpdateZoneCmd; |
| 64 | +import org.apache.cloudstack.api.command.user.network.ListNetworkOfferingsCmd; |
| 65 | +import org.apache.cloudstack.config.Configuration; |
| 66 | +import org.apache.cloudstack.context.CallContext; |
| 67 | +import org.apache.cloudstack.engine.orchestration.service.NetworkOrchestrationService; |
| 68 | +import org.apache.cloudstack.engine.subsystem.api.storage.DataStoreManager; |
| 69 | +import org.apache.cloudstack.engine.subsystem.api.storage.ZoneScope; |
| 70 | +import org.apache.cloudstack.framework.config.ConfigDepot; |
| 71 | +import org.apache.cloudstack.framework.config.ConfigKey; |
| 72 | +import org.apache.cloudstack.framework.config.Configurable; |
| 73 | +import org.apache.cloudstack.framework.config.dao.ConfigurationDao; |
| 74 | +import org.apache.cloudstack.framework.config.impl.ConfigurationVO; |
| 75 | +import org.apache.cloudstack.framework.messagebus.MessageBus; |
| 76 | +import org.apache.cloudstack.framework.messagebus.PublishScope; |
| 77 | +import org.apache.cloudstack.region.PortableIp; |
| 78 | +import org.apache.cloudstack.region.PortableIpDao; |
| 79 | +import org.apache.cloudstack.region.PortableIpRange; |
| 80 | +import org.apache.cloudstack.region.PortableIpRangeDao; |
| 81 | +import org.apache.cloudstack.region.PortableIpRangeVO; |
| 82 | +import org.apache.cloudstack.region.PortableIpVO; |
| 83 | +import org.apache.cloudstack.region.Region; |
| 84 | +import org.apache.cloudstack.region.RegionVO; |
| 85 | +import org.apache.cloudstack.region.dao.RegionDao; |
| 86 | +import org.apache.cloudstack.storage.datastore.db.ImageStoreDao; |
| 87 | +import org.apache.cloudstack.storage.datastore.db.ImageStoreDetailsDao; |
| 88 | +import org.apache.cloudstack.storage.datastore.db.ImageStoreVO; |
| 89 | +import org.apache.cloudstack.storage.datastore.db.PrimaryDataStoreDao; |
| 90 | +import org.apache.cloudstack.storage.datastore.db.StoragePoolDetailsDao; |
| 91 | +import org.apache.cloudstack.storage.datastore.db.StoragePoolVO; |
| 92 | +import org.apache.commons.collections.CollectionUtils; |
| 93 | +import org.apache.commons.collections.MapUtils; |
| 94 | +import org.apache.log4j.Logger; |
19 | 95 | import com.cloud.alert.AlertManager; |
20 | 96 | import com.cloud.api.ApiDBUtils; |
21 | 97 | import com.cloud.capacity.CapacityManager; |
|
152 | 228 | import com.google.common.base.Preconditions; |
153 | 229 | import com.google.common.base.Strings; |
154 | 230 | import com.google.common.collect.Sets; |
155 | | -import org.apache.cloudstack.acl.SecurityChecker; |
156 | | -import org.apache.cloudstack.affinity.AffinityGroup; |
157 | | -import org.apache.cloudstack.affinity.AffinityGroupService; |
158 | | -import org.apache.cloudstack.affinity.dao.AffinityGroupDao; |
159 | | -import org.apache.cloudstack.api.command.admin.config.UpdateCfgCmd; |
160 | | -import org.apache.cloudstack.api.command.admin.network.CreateManagementNetworkIpRangeCmd; |
161 | | -import org.apache.cloudstack.api.command.admin.network.CreateNetworkOfferingCmd; |
162 | | -import org.apache.cloudstack.api.command.admin.network.DeleteManagementNetworkIpRangeCmd; |
163 | | -import org.apache.cloudstack.api.command.admin.network.DeleteNetworkOfferingCmd; |
164 | | -import org.apache.cloudstack.api.command.admin.network.UpdateNetworkOfferingCmd; |
165 | | -import org.apache.cloudstack.api.command.admin.offering.CreateDiskOfferingCmd; |
166 | | -import org.apache.cloudstack.api.command.admin.offering.CreateServiceOfferingCmd; |
167 | | -import org.apache.cloudstack.api.command.admin.offering.DeleteDiskOfferingCmd; |
168 | | -import org.apache.cloudstack.api.command.admin.offering.DeleteServiceOfferingCmd; |
169 | | -import org.apache.cloudstack.api.command.admin.offering.UpdateDiskOfferingCmd; |
170 | | -import org.apache.cloudstack.api.command.admin.offering.UpdateServiceOfferingCmd; |
171 | | -import org.apache.cloudstack.api.command.admin.pod.DeletePodCmd; |
172 | | -import org.apache.cloudstack.api.command.admin.pod.UpdatePodCmd; |
173 | | -import org.apache.cloudstack.api.command.admin.region.CreatePortableIpRangeCmd; |
174 | | -import org.apache.cloudstack.api.command.admin.region.DeletePortableIpRangeCmd; |
175 | | -import org.apache.cloudstack.api.command.admin.region.ListPortableIpRangesCmd; |
176 | | -import org.apache.cloudstack.api.command.admin.vlan.CreateVlanIpRangeCmd; |
177 | | -import org.apache.cloudstack.api.command.admin.vlan.DedicatePublicIpRangeCmd; |
178 | | -import org.apache.cloudstack.api.command.admin.vlan.DeleteVlanIpRangeCmd; |
179 | | -import org.apache.cloudstack.api.command.admin.vlan.ReleasePublicIpRangeCmd; |
180 | | -import org.apache.cloudstack.api.command.admin.zone.CreateZoneCmd; |
181 | | -import org.apache.cloudstack.api.command.admin.zone.DeleteZoneCmd; |
182 | | -import org.apache.cloudstack.api.command.admin.zone.UpdateZoneCmd; |
183 | | -import org.apache.cloudstack.api.command.user.network.ListNetworkOfferingsCmd; |
184 | | -import org.apache.cloudstack.config.Configuration; |
185 | | -import org.apache.cloudstack.context.CallContext; |
186 | | -import org.apache.cloudstack.engine.orchestration.service.NetworkOrchestrationService; |
187 | | -import org.apache.cloudstack.engine.subsystem.api.storage.DataStoreManager; |
188 | | -import org.apache.cloudstack.engine.subsystem.api.storage.ZoneScope; |
189 | | -import org.apache.cloudstack.framework.config.ConfigDepot; |
190 | | -import org.apache.cloudstack.framework.config.ConfigKey; |
191 | | -import org.apache.cloudstack.framework.config.Configurable; |
192 | | -import org.apache.cloudstack.framework.config.dao.ConfigurationDao; |
193 | | -import org.apache.cloudstack.framework.config.impl.ConfigurationVO; |
194 | | -import org.apache.cloudstack.framework.messagebus.MessageBus; |
195 | | -import org.apache.cloudstack.framework.messagebus.PublishScope; |
196 | | -import org.apache.cloudstack.region.PortableIp; |
197 | | -import org.apache.cloudstack.region.PortableIpDao; |
198 | | -import org.apache.cloudstack.region.PortableIpRange; |
199 | | -import org.apache.cloudstack.region.PortableIpRangeDao; |
200 | | -import org.apache.cloudstack.region.PortableIpRangeVO; |
201 | | -import org.apache.cloudstack.region.PortableIpVO; |
202 | | -import org.apache.cloudstack.region.Region; |
203 | | -import org.apache.cloudstack.region.RegionVO; |
204 | | -import org.apache.cloudstack.region.dao.RegionDao; |
205 | | -import org.apache.cloudstack.storage.datastore.db.ImageStoreDao; |
206 | | -import org.apache.cloudstack.storage.datastore.db.ImageStoreDetailsDao; |
207 | | -import org.apache.cloudstack.storage.datastore.db.ImageStoreVO; |
208 | | -import org.apache.cloudstack.storage.datastore.db.PrimaryDataStoreDao; |
209 | | -import org.apache.cloudstack.storage.datastore.db.StoragePoolDetailsDao; |
210 | | -import org.apache.cloudstack.storage.datastore.db.StoragePoolVO; |
211 | | -import org.apache.commons.collections.CollectionUtils; |
212 | | -import org.apache.commons.collections.MapUtils; |
213 | | -import org.apache.log4j.Logger; |
214 | 231 |
|
215 | | -import javax.inject.Inject; |
216 | | -import javax.naming.ConfigurationException; |
217 | | -import java.net.URI; |
218 | | -import java.net.URISyntaxException; |
219 | | -import java.sql.Date; |
220 | | -import java.sql.PreparedStatement; |
221 | | -import java.util.ArrayList; |
222 | | -import java.util.Arrays; |
223 | | -import java.util.Collection; |
224 | | -import java.util.HashMap; |
225 | | -import java.util.HashSet; |
226 | | -import java.util.Iterator; |
227 | | -import java.util.List; |
228 | | -import java.util.Map; |
229 | | -import java.util.Map.Entry; |
230 | | -import java.util.Set; |
231 | | -import java.util.UUID; |
232 | 232 |
|
233 | 233 | public class ConfigurationManagerImpl extends ManagerBase implements ConfigurationManager, ConfigurationService, Configurable { |
234 | 234 | public static final Logger s_logger = Logger.getLogger(ConfigurationManagerImpl.class); |
|
0 commit comments