diff options
author | HuabingZhao <zhao.huabing@zte.com.cn> | 2018-03-23 12:33:47 +0800 |
---|---|---|
committer | HuabingZhao <zhao.huabing@zte.com.cn> | 2018-03-23 12:35:40 +0800 |
commit | 13822c15abfb02396bb203b00ea841cf6d5548cd (patch) | |
tree | 48e1725f008e733d95ff50f428e9d1720ab6debf /apiroute/apiroute-service/src/main | |
parent | a00ad2cbb7858479ed698929ec43754bdbf25948 (diff) |
Support health check
Change-Id: Icbd05bc1cefb83f1ee8c03ecf764dfbc5d015395
Issue-ID: MSB-180
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'apiroute/apiroute-service/src/main')
-rw-r--r-- | apiroute/apiroute-service/src/main/java/org/onap/msb/apiroute/api/Node.java | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/apiroute/apiroute-service/src/main/java/org/onap/msb/apiroute/api/Node.java b/apiroute/apiroute-service/src/main/java/org/onap/msb/apiroute/api/Node.java index 4257c53..4c1e553 100644 --- a/apiroute/apiroute-service/src/main/java/org/onap/msb/apiroute/api/Node.java +++ b/apiroute/apiroute-service/src/main/java/org/onap/msb/apiroute/api/Node.java @@ -31,6 +31,75 @@ public class Node implements Serializable { private int ttl = -1; + // 健康检查参数 + // health check type, allowableValues = "HTTP,TCP", example = "HTTP") + private String checkType = "HTTP"; + // health check url, example for http "http://192.168.0.2:80/heallth", example for tcp + // "192.168.1.100:80" + private String checkUrl = ""; + + // TCP or HTTP health check Interval,Unit: second", example = "10s" + private String checkInterval = "10s"; + + // TCP or HTTP health check TimeOut,Unit: second", example = "10s" + private String checkTimeOut = "10s"; + + /** + * @return the checkType + */ + public String getCheckType() { + return checkType; + } + + /** + * @param checkType the checkType to set + */ + public void setCheckType(String checkType) { + this.checkType = checkType; + } + + /** + * @return the checkUrl + */ + public String getCheckUrl() { + return checkUrl; + } + + /** + * @param checkUrl the checkUrl to set + */ + public void setCheckUrl(String checkUrl) { + this.checkUrl = checkUrl; + } + + /** + * @return the checkInterval + */ + public String getCheckInterval() { + return checkInterval; + } + + /** + * @param checkInterval the checkInterval to set + */ + public void setCheckInterval(String checkInterval) { + this.checkInterval = checkInterval; + } + + /** + * @return the checkTimeOut + */ + public String getCheckTimeOut() { + return checkTimeOut; + } + + /** + * @param checkTimeOut the checkTimeOut to set + */ + public void setCheckTimeOut(String checkTimeOut) { + this.checkTimeOut = checkTimeOut; + } + public String getStatus() { return status; } |