2 * Copyright 2016-2017 ZTE, Inc. and others.
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 * in compliance with the License. You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software distributed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 * or implied. See the License for the specific language governing permissions and limitations under
14 package org.onap.msb.sdclient.core;
16 import java.io.Serializable;
17 import java.util.List;
19 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20 import com.fasterxml.jackson.annotation.JsonInclude;
21 import com.fasterxml.jackson.annotation.JsonInclude.Include;
22 import com.fasterxml.jackson.annotation.JsonProperty;
24 @JsonIgnoreProperties(ignoreUnknown = true)
25 public class AgentService implements Serializable {
28 private static final long serialVersionUID = 1L;
37 private List<String> tags;
39 @JsonProperty("Address")
40 private String address;
45 @JsonProperty("Check")
46 @JsonInclude(Include.NON_EMPTY)
49 @JsonInclude(Include.NON_EMPTY)
61 @JsonProperty("Interval")
62 private String interval;
64 @JsonProperty("Timeout")
65 private String timeout;
68 private String status = "passing";
70 public String getTimeout() {
74 public void setTimeout(String timeout) {
75 this.timeout = timeout;
78 public String getHttp() {
82 public void setHttp(String http) {
86 public String getTcp() {
90 public void setTcp(String tcp) {
94 public String getTtl() {
98 public void setTtl(String ttl) {
102 public String getInterval() {
106 public void setInterval(String interval) {
107 this.interval = interval;
110 public String getStatus() {
114 public void setStatus(String status) {
115 this.status = status;
121 public String getId() {
125 public void setId(String id) {
131 public String getName() {
135 public void setName(String name) {
139 public List<String> getTags() {
143 public void setTags(List<String> tags) {
147 public String getAddress() {
151 public void setAddress(String address) {
152 this.address = address;
155 public int getPort() {
159 public void setPort(int port) {
163 public Check getCheck() {
167 public void setCheck(Check check) {
171 public Check createCheck() {