b378b22a87ff39e7518b9f294fb8af7b062d3a28
[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 multiCloudAddr;
31
32     protected static String msbDiscoveryIp;
33
34     protected static String msbDiscoveryPort;
35
36     public static void setCloudInfrastructureAddr(String address) {
37         cloudInfrastructureAddr = address;
38     }
39
40     public static String getCloudInfrastructureAddr() {
41         return msbServerAddr + "/api/aai-cloudInfrastructure/v11";
42     }
43
44     public static String getExternalSystemAddr() {
45         return msbServerAddr + "/api/aai-externalSystem/v11";
46     }
47
48     public static void setExternalSystemAddr(String Addr) {
49         externalSystemAddr = Addr;
50     }
51
52     public static void setMultiCloudAddr(String address) {
53         multiCloudAddr = address;
54     }
55
56     public static String getMultiCloudAddr() {
57         return msbServerAddr + "/api/multicloud/v0";
58     }
59
60     public static String getMsbDiscoveryIp() {
61         return msbDiscoveryIp;
62     }
63
64     public static void setMsbDiscoveryIp(String discoveryIp) {
65         msbDiscoveryIp = discoveryIp;
66     }
67
68     public static String getMsbDiscoveryPort() {
69         return msbDiscoveryPort;
70     }
71
72     public static void setMsbDiscoveryPort(String discoveryPort) {
73         msbDiscoveryPort = discoveryPort;
74     }
75
76     public static String getMsbServerAddr() {
77         return msbServerAddr;
78     }
79
80     public static void setMsbServerAddr(String msbServerAddr) {
81         MsbConfig.msbServerAddr = msbServerAddr;
82     }
83 }