2 * Copyright 2017 ZTE Corporation.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.onap.aai.esr.common;
19 public class MsbConfig {
21 protected static String msbServerAddr;
23 protected static String cloudInfrastructureAddr;
25 protected static String externalSystemAddr;
27 protected static String multiCloudAddr;
29 protected static String msbDiscoveryIp;
31 protected static String msbDiscoveryPort;
33 public static void setCloudInfrastructureAddr(String address) {
34 cloudInfrastructureAddr = address;
37 public static String getCloudInfrastructureAddr() {
38 return msbServerAddr + "/api/aai-cloudInfrastructure/v11";
41 public static String getExternalSystemAddr() {
42 return msbServerAddr + "/api/aai-externalSystem/v11";
45 public static void setExternalSystemAddr(String Addr) {
46 externalSystemAddr = Addr;
49 public static void setMultiCloudAddr(String address) {
50 multiCloudAddr = address;
53 public static String getMultiCloudAddr() {
54 return msbServerAddr + "/api/multicloud/v0";
57 public static String getMsbDiscoveryIp() {
58 return msbDiscoveryIp;
61 public static void setMsbDiscoveryIp(String discoveryIp) {
62 msbDiscoveryIp = discoveryIp;
65 public static String getMsbDiscoveryPort() {
66 return msbDiscoveryPort;
69 public static void setMsbDiscoveryPort(String discoveryPort) {
70 msbDiscoveryPort = discoveryPort;
73 public static String getMsbServerAddr() {
77 public static void setMsbServerAddr(String msbServerAddr) {
78 MsbConfig.msbServerAddr = msbServerAddr;