Replace the orginal node ip with SERVICE_IP
[vfc/nfvo/driver/sfc.git] / zte / sfc-driver / sfc-driver / src / main / java / org / onap / sfc / SfcDriverConfig.java
1 /**
2  * Copyright 2016 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
17 package org.onap.sfc;
18
19 import com.fasterxml.jackson.annotation.JsonProperty;
20 import io.dropwizard.Configuration;
21 import org.hibernate.validator.constraints.NotEmpty;
22
23
24 public class SfcDriverConfig extends Configuration {
25     @NotEmpty
26     private String template;
27
28     @NotEmpty
29     private String defaultName = "Stranger";
30
31     @NotEmpty
32     private String msbServiceUrl;
33     
34     @NotEmpty
35     private String serviceIp;
36
37     @JsonProperty
38     public String getTemplate() {
39         return template;
40     }
41
42     @JsonProperty
43     public void setTemplate(String template) {
44         this.template = template;
45     }
46
47     @JsonProperty
48     public String getDefaultName() {
49         return defaultName;
50     }
51     @JsonProperty
52     public void setDefaultName(String name) {
53         this.defaultName = name;
54     }
55
56     public String getMsbServiceUrl() {
57         return msbServiceUrl;
58     }
59
60     public void setMsbServiceUrl(String msbServiceUrl) {
61         this.msbServiceUrl = msbServiceUrl;
62     }
63     
64     @JsonProperty
65     public String getServiceIp() {
66         return serviceIp;
67     }
68     
69     @JsonProperty
70     public void setServiceIp(String serviceIp) {
71         this.serviceIp = serviceIp;
72     }
73
74 }