public class CheckService extends Object
| 构造器和说明 |
|---|
CheckService() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getExecCommand()
健康检查: 执行命令
|
Long |
getFailureThreshold()
不健康阈值.单位秒
|
String |
getHttpGetPath()
健康检查: HTTP请求路径
请求返回码介于200~400之间时,检查成功
|
Long |
getHttpGetPort()
HTTP请求端口
|
Long |
getInitialDelaySeconds()
首次检查延时
单位秒
|
Long |
getPeriodSeconds()
检查间隔
单位秒
|
Long |
getSuccessThreshold()
健康阈值
单位秒
|
Long |
getTcpSocketPort()
健康检查: tcp端口检查
当TCP端口被占用,检查成功
|
Long |
getTimeoutSeconds()
检查超时
单位秒
|
void |
setExecCommand(String execCommand)
健康检查: 执行命令
|
void |
setFailureThreshold(Long failureThreshold)
不健康阈值.单位秒
|
void |
setHttpGetPath(String httpGetPath)
健康检查: HTTP请求路径
请求返回码介于200~400之间时,检查成功
|
void |
setHttpGetPort(Long httpGetPort)
HTTP请求端口
|
void |
setInitialDelaySeconds(Long initialDelaySeconds)
首次检查延时
单位秒
|
void |
setPeriodSeconds(Long periodSeconds)
检查间隔
单位秒
|
void |
setSuccessThreshold(Long successThreshold)
健康阈值
单位秒
|
void |
setTcpSocketPort(Long tcpSocketPort)
健康检查: tcp端口检查
当TCP端口被占用,检查成功
|
void |
setTimeoutSeconds(Long timeoutSeconds)
检查超时
单位秒
|
public String getExecCommand()
public void setExecCommand(String execCommand)
public Long getFailureThreshold()
public void setFailureThreshold(Long failureThreshold)
public String getHttpGetPath()
public void setHttpGetPath(String httpGetPath)
public Long getHttpGetPort()
public void setHttpGetPort(Long httpGetPort)
public Long getInitialDelaySeconds()
public void setInitialDelaySeconds(Long initialDelaySeconds)
public Long getPeriodSeconds()
public void setPeriodSeconds(Long periodSeconds)
public Long getSuccessThreshold()
public void setSuccessThreshold(Long successThreshold)
public Long getTcpSocketPort()
public void setTcpSocketPort(Long tcpSocketPort)
public Long getTimeoutSeconds()
public void setTimeoutSeconds(Long timeoutSeconds)
Copyright © 2019. All Rights Reserved.