X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=esr-mgr%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fesr%2Fexternalservice%2Fcloud%2FVimManagerProxy.java;fp=esr-mgr%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fesr%2Fexternalservice%2Fcloud%2FVimManagerProxy.java;h=0c5d678ad6d7019182c34abe16dcc385ad357d54;hb=6011cbc9b4031f3ce25a82ccb1c0fedf4a2bf57a;hp=3a485b2ef9d7bdbbc5b33eaf68a6b55fd1906dc2;hpb=f98c32ab879722dfce8c1c72b3dedc6291722a0e;p=aai%2Fesr-server.git diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxy.java b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxy.java index 3a485b2..0c5d678 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxy.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxy.java @@ -17,16 +17,21 @@ package org.onap.aai.esr.externalservice.cloud; import org.glassfish.jersey.client.ClientConfig; import org.onap.aai.esr.common.MsbConfig; +import org.onap.aai.esr.exception.ExtsysException; import com.eclipsesource.jaxrs.consumer.ConsumerFactory; public class VimManagerProxy { public static void updateVim(String cloudOwner, String cloudRegionId, - Tenant tenant) throws Exception { + Tenant tenant) throws ExtsysException { ClientConfig config = new ClientConfig(new VimUpdateProvider()); IVimManage updateVimServiceproxy = ConsumerFactory .createConsumer(MsbConfig.getCloudInfrastructureAddr(), config, IVimManage.class); - updateVimServiceproxy.updateVIM(cloudOwner, cloudRegionId, tenant); + try { + updateVimServiceproxy.updateVIM(cloudOwner, cloudRegionId, tenant); + } catch (Exception e) { + throw new ExtsysException("Update cloud region to A&AI by Multi-Cloud failed.", e); + } } }