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