3d827a8d339d3b7e831cce7e2da826b60216d2bc
[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 void setExternalSystemAddr(String Addr) {
51         externalSystemAddr = Addr;
52     }
53
54     public static String getNetworkAddr() {
55         return msbServerAddr + "/api/aai-network/v11";
56     }
57     
58     public static void setNetworkAddr(String address) {
59         networkAddr = address;
60     }
61     
62     public static void setMultiCloudAddr(String address) {
63         multiCloudAddr = address;
64     }
65
66     public static String getMultiCloudAddr() {
67         return msbServerAddr + "/api/multicloud/v0";
68     }
69
70     public static String getMsbDiscoveryIp() {
71         return msbDiscoveryIp;
72     }
73
74     public static void setMsbDiscoveryIp(String discoveryIp) {
75         msbDiscoveryIp = discoveryIp;
76     }
77
78     public static String getMsbDiscoveryPort() {
79         return msbDiscoveryPort;
80     }
81
82     public static void setMsbDiscoveryPort(String discoveryPort) {
83         msbDiscoveryPort = discoveryPort;
84     }
85
86     public static String getMsbServerAddr() {
87         return msbServerAddr;
88     }
89
90     public static void setMsbServerAddr(String msbServerAddr) {
91         MsbConfig.msbServerAddr = msbServerAddr;
92     }
93 }