Add Nfvo external system backend changes in ESR
[aai/esr-server.git] / esr-mgr / src / main / java / org / onap / aai / esr / common / MsbConfig.java
1 /**
2  * Copyright 2017 ZTE Corporation.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package org.onap.aai.esr.common;
17
18
19 public class MsbConfig {
20         
21         private MsbConfig(){
22         }
23
24     protected static String msbServerAddr;
25
26     protected static String cloudInfrastructureAddr;
27
28     protected static String externalSystemAddr;
29     
30     protected static String networkAddr;
31
32     protected static String multiCloudAddr;
33
34     protected static String msbDiscoveryIp;
35
36     protected static String msbDiscoveryPort;
37
38     public static void setCloudInfrastructureAddr(String address) {
39         cloudInfrastructureAddr = address;
40     }
41
42     public static String getCloudInfrastructureAddr() {
43         return msbServerAddr + "/api/aai-cloudInfrastructure/v11";
44     }
45
46     public static String getExternalSystemAddr() {
47         return msbServerAddr + "/api/aai-externalSystem/v11";
48     }
49
50     public static String getExternalSystemAddrV16() {
51         return msbServerAddr + "/api/aai-externalSystem/v16";
52     }
53
54  
55     public static void setExternalSystemAddr(String Addr) {
56         externalSystemAddr = Addr;
57     }
58
59     public static String getNetworkAddr() {
60         return msbServerAddr + "/api/aai-network/v11";
61     }
62     
63     public static void setNetworkAddr(String address) {
64         networkAddr = address;
65     }
66     
67     public static void setMultiCloudAddr(String address) {
68         multiCloudAddr = address;
69     }
70
71     public static String getMultiCloudAddr() {
72         return msbServerAddr + "/api/multicloud/v1";
73     }
74
75     public static String getMsbDiscoveryIp() {
76         return msbDiscoveryIp;
77     }
78
79     public static void setMsbDiscoveryIp(String discoveryIp) {
80         msbDiscoveryIp = discoveryIp;
81     }
82
83     public static String getMsbDiscoveryPort() {
84         return msbDiscoveryPort;
85     }
86
87     public static void setMsbDiscoveryPort(String discoveryPort) {
88         msbDiscoveryPort = discoveryPort;
89     }
90
91     public static String getMsbServerAddr() {
92         return msbServerAddr;
93     }
94
95     public static void setMsbServerAddr(String msbServerAddr) {
96         MsbConfig.msbServerAddr = msbServerAddr;
97     }
98 }