/**
* Copyright 2016-2017 ZTE, Inc. and others.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
*/
package org.onap.msb.sdclient.core;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class AgentService implements Serializable {
-
+
private static final long serialVersionUID = 1L;
@JsonProperty("Port")
private int port;
-
+
@JsonProperty("Check")
- @JsonInclude(Include.NON_EMPTY)
+ @JsonInclude(Include.NON_EMPTY)
private Check check;
-
- @JsonInclude(Include.NON_EMPTY)
- public class Check{
-
+
+ @JsonInclude(Include.NON_EMPTY)
+ public class Check {
+
@JsonProperty("HTTP")
private String http;
-
+
@JsonProperty("TCP")
private String tcp;
-
+
@JsonProperty("TTL")
private String ttl;
-
+
@JsonProperty("Interval")
private String interval;
-
+
@JsonProperty("Timeout")
private String timeout;
-
-
- private String status="passing";
-
+
+
+ private String status = "passing";
+
public String getTimeout() {
- return timeout;
+ return timeout;
}
+
public void setTimeout(String timeout) {
- this.timeout = timeout;
+ this.timeout = timeout;
}
-
+
public String getHttp() {
return http;
}
+
public void setHttp(String http) {
this.http = http;
}
+
public String getTcp() {
return tcp;
}
+
public void setTcp(String tcp) {
this.tcp = tcp;
}
+
public String getTtl() {
return ttl;
}
+
public void setTtl(String ttl) {
this.ttl = ttl;
}
+
public String getInterval() {
return interval;
}
+
public void setInterval(String interval) {
this.interval = interval;
}
+
public String getStatus() {
return status;
}
+
public void setStatus(String status) {
this.status = status;
}
-
-
+
+
}
public String getId() {
this.id = id;
}
-
+
public String getName() {
return name;
public void setPort(int port) {
this.port = port;
}
-
+
public Check getCheck() {
return check;
}
public void setCheck(Check check) {
this.check = check;
}
-
- public Check createCheck(){
+
+ public Check createCheck() {
return new Check();
-
+
}
}