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 com.fasterxml.jackson.annotation.JsonIgnoreProperties;
22 import com.fasterxml.jackson.annotation.JsonInclude;
23 import com.fasterxml.jackson.annotation.JsonProperty;
24 import com.fasterxml.jackson.annotation.JsonInclude.Include;
26 @JsonIgnoreProperties(ignoreUnknown = true)
27 public class AgentService implements Serializable {
30 private static final long serialVersionUID = 1L;
39 private List<String> tags;
41 @JsonProperty("Address")
42 private String address;
47 @JsonProperty("Check")
48 @JsonInclude(Include.NON_EMPTY)
51 @JsonInclude(Include.NON_EMPTY)
63 @JsonProperty("Interval")
64 private String interval;
66 @JsonProperty("Timeout")
67 private String timeout;
70 private String status="passing";
72 public String getTimeout() {
75 public void setTimeout(String timeout) {
76 this.timeout = timeout;
79 public String getHttp() {
82 public void setHttp(String http) {
85 public String getTcp() {
88 public void setTcp(String tcp) {
91 public String getTtl() {
94 public void setTtl(String ttl) {
97 public String getInterval() {
100 public void setInterval(String interval) {
101 this.interval = interval;
103 public String getStatus() {
106 public void setStatus(String status) {
107 this.status = status;
113 public String getId() {
117 public void setId(String id) {
123 public String getName() {
127 public void setName(String name) {
131 public List<String> getTags() {
135 public void setTags(List<String> tags) {
139 public String getAddress() {
143 public void setAddress(String address) {
144 this.address = address;
147 public int getPort() {
151 public void setPort(int port) {
155 public Check getCheck() {
159 public void setCheck(Check check) {
163 public Check createCheck(){