- public static boolean isTest = false;
- private static IExternalSystem externalSystemproxy;
- private static String transactionId = "9999";
- private static String fromAppId = "esr-server";
- private static String authorization = AaiCommon.getAuthenticationCredentials();
- static {
- ClientConfig config = new ClientConfig();
- externalSystemproxy = ConsumerFactory.createConsumer(MsbConfig.getExternalSystemAddr(),
- config, IExternalSystem.class);
- }
-
- public static void registerVnfm(String vnfmId, EsrVnfmDetail esrVnfmDetail)
- throws ExtsysException {
- if (isTest) {
-
- } else {
- ClientConfig config = new ClientConfig(new VnfmRegisterProvider());
- IExternalSystem registerVnfmServiceproxy = ConsumerFactory
- .createConsumer(MsbConfig.getExternalSystemAddr(), config, IExternalSystem.class);
- try {
- registerVnfmServiceproxy.registerVNFM(transactionId, fromAppId, authorization, vnfmId,
- esrVnfmDetail);
- } catch (Exception e) {
- throw new ExtsysException("PUT VNFM to A&AI failed.", e);
- }
+ private static IExternalSystem externalSystemproxy;
+ private static String transactionId = "9999";
+ private static String fromAppId = "esr-server";
+ private static String authorization = AaiCommon.getAuthenticationCredentials();
+ static {
+ ClientConfig config = new ClientConfig();
+ externalSystemproxy =
+ ConsumerFactory.createConsumer(MsbConfig.getExternalSystemAddr(), config, IExternalSystem.class);