dcdcb8a322bb7b07a5893105eb9159af42ea9e61
[msb/discovery.git] / sdclient / discovery-service / src / main / java / org / onap / msb / sdclient / core / CatalogNode.java
1 /**
2  * Copyright 2016-2017 ZTE, Inc. and others.
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.msb.sdclient.core;
17
18 import java.io.Serializable;
19 import java.util.List;
20
21 import org.onap.msb.sdclient.wrapper.util.DiscoverUtil;
22
23 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25
26 @JsonIgnoreProperties(ignoreUnknown = true)
27 public class CatalogNode implements Serializable{
28     private static final long serialVersionUID = 1L;
29     
30     @JsonProperty("Node")
31     private  String node=DiscoverUtil.EXTERNAL_NODE_NAME;
32     
33     @JsonProperty("Address")
34     private  String address="127.0.0.1";
35     
36     @JsonProperty("Service")
37     private ConsulService service;
38
39     public String getNode() {
40         return node;
41     }
42
43     public void setNode(String node) {
44         this.node = node;
45     }
46
47     public String getAddress() {
48         return address;
49     }
50
51     public void setAddress(String address) {
52         this.address = address;
53     }
54
55     public ConsulService getService() {
56         return service;
57     }
58
59     public void setService(ConsulService service) {
60         this.service = service;
61     }
62     
63     public CatalogNode(){
64       
65     }
66     
67     public CatalogNode(ConsulService service){
68        this.service = service;
69     }
70     
71
72 }
73
74