2 * Copyright 2016-2017 ZTE, Inc. and others.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.onap.msb.sdclient.core;
18 import java.io.Serializable;
19 import java.util.List;
21 import org.onap.msb.sdclient.wrapper.util.DiscoverUtil;
23 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
24 import com.fasterxml.jackson.annotation.JsonProperty;
26 @JsonIgnoreProperties(ignoreUnknown = true)
27 public class CatalogNode implements Serializable{
28 private static final long serialVersionUID = 1L;
31 private String node=DiscoverUtil.EXTERNAL_NODE_NAME;
33 @JsonProperty("Address")
34 private String address="127.0.0.1";
36 @JsonProperty("Service")
37 private ConsulService service;
39 public String getNode() {
43 public void setNode(String node) {
47 public String getAddress() {
51 public void setAddress(String address) {
52 this.address = address;
55 public ConsulService getService() {
59 public void setService(ConsulService service) {
60 this.service = service;
67 public CatalogNode(ConsulService service){
68 this.service = service;