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 {
24 protected static String msbServerAddr;
26 protected static String cloudInfrastructureAddr;
28 protected static String externalSystemAddr;
30 protected static String multiCloudAddr;
32 protected static String msbDiscoveryIp;
34 protected static String msbDiscoveryPort;
36 public static void setCloudInfrastructureAddr(String address) {
37 cloudInfrastructureAddr = address;
40 public static String getCloudInfrastructureAddr() {
41 return msbServerAddr + "/api/aai-cloudInfrastructure/v11";
44 public static String getExternalSystemAddr() {
45 return msbServerAddr + "/api/aai-externalSystem/v11";
48 public static void setExternalSystemAddr(String Addr) {
49 externalSystemAddr = Addr;
52 public static void setMultiCloudAddr(String address) {
53 multiCloudAddr = address;
56 public static String getMultiCloudAddr() {
57 return msbServerAddr + "/api/multicloud/v0";
60 public static String getMsbDiscoveryIp() {
61 return msbDiscoveryIp;
64 public static void setMsbDiscoveryIp(String discoveryIp) {
65 msbDiscoveryIp = discoveryIp;
68 public static String getMsbDiscoveryPort() {
69 return msbDiscoveryPort;
72 public static void setMsbDiscoveryPort(String discoveryPort) {
73 msbDiscoveryPort = discoveryPort;
76 public static String getMsbServerAddr() {
80 public static void setMsbServerAddr(String msbServerAddr) {
81 MsbConfig.msbServerAddr = msbServerAddr;