- public void deleteVim(String cloud_owner, String cloud_region_id, String resourceVersion) throws ExtsysException
- {
- try {
- adapterServiceproxy.deleteVim(transactionId, fromAppId, authorization, cloud_owner,
- cloud_region_id, resourceVersion);
- } catch (Exception e) {
- throw new ExtsysException("Delete cloud region from A&AI failed.", e);
+ public void deleteVim(String cloud_owner, String cloud_region_id, String resourceVersion) throws ExtsysException {
+ try {
+ adapterServiceproxy.deleteVim(transactionId, fromAppId, authorization, cloud_owner, cloud_region_id,
+ resourceVersion);
+ } catch (Exception e) {
+ throw new ExtsysException("Delete cloud region from A&AI failed.", e);
+ }
+ }
+
+ public String qureyComplexes() throws ExtsysException {
+ try {
+ return adapterServiceproxy.queryComplexList(transactionId, fromAppId, authorization);
+ } catch (Exception e) {
+ throw new ExtsysException("Query complexes from A&AI failed.", e);
+ }
+ }
+
+ public void createCloudRegionRelationShip(String cloudOwner, String cloudRegionId, Relationship relationship) throws ExtsysException {
+ ClientConfig config = new ClientConfig(new RelationshipProvider());
+ ICloudRegion createRelationshipProxy =
+ ConsumerFactory.createConsumer(MsbConfig.getCloudInfrastructureAddr(), config, ICloudRegion.class);
+ try {
+ createRelationshipProxy.createCloudRegionRelationship(transactionId, fromAppId, authorization, cloudOwner,
+ cloudRegionId, relationship);
+ } catch (Exception e) {
+ throw new ExtsysException("PUT cloud region to A&AI failed.", e);
+ }