public class VpcHealthConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VpcHealthConfig.MethodEnum
健康检查时的请求方法
|
static class |
VpcHealthConfig.ProtocolEnum
使用以下协议,对VPC中主机执行健康检查: - TCP - HTTP - HTTPS
|
static class |
VpcHealthConfig.StatusEnum
健康检查状态 - 1:可用 - 2:不可用
|
| Constructor and Description |
|---|
VpcHealthConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Boolean |
getEnableClientSsl()
是否开启双向认证。若开启,则使用实例配置中的backend_client_certificate配置项的证书
|
String |
getHttpCode()
检查目标HTTP响应时,判断成功使用的HTTP响应码。取值范围为100到599之前的任意整数值,支持如下三种格式: - 多个值,如:200,201,202 - 一系列值,如:200-299 - 组合值,如:201,202,210-299 protocol = http时必选
|
VpcHealthConfig.MethodEnum |
getMethod()
健康检查时的请求方法
|
String |
getPath()
健康检查时的目标路径。protocol = http或https时必选
|
Integer |
getPort()
健康检查的目标端口,缺少或port = 0时为VPC中主机的端口号。 若此端口存在非0值,则使用此端口进行健康检查。
minimum: 0
maximum: 65535
|
VpcHealthConfig.ProtocolEnum |
getProtocol()
使用以下协议,对VPC中主机执行健康检查: - TCP - HTTP - HTTPS
|
VpcHealthConfig.StatusEnum |
getStatus()
健康检查状态 - 1:可用 - 2:不可用
|
Integer |
getThresholdAbnormal()
异常阙值。判定VPC通道中主机异常的依据为:连续检查x失败,x为您设置的异常阈值。
minimum: 2
maximum: 10
|
Integer |
getThresholdNormal()
正常阈值。判定VPC通道中主机正常的依据为:连续检查x成功,x为您设置的正常阈值。
minimum: 2
maximum: 10
|
Integer |
getTimeInterval()
间隔时间:连续两次检查的间隔时间,单位为秒。必须大于timeout字段取值。
minimum: 5
maximum: 300
|
Integer |
getTimeout()
超时时间:检查期间,无响应的时间,单位为秒。必须小于time_interval字段取值。
minimum: 2
maximum: 30
|
int |
hashCode() |
void |
setEnableClientSsl(Boolean enableClientSsl) |
void |
setHttpCode(String httpCode) |
void |
setMethod(VpcHealthConfig.MethodEnum method) |
void |
setPath(String path) |
void |
setPort(Integer port) |
void |
setProtocol(VpcHealthConfig.ProtocolEnum protocol) |
void |
setStatus(VpcHealthConfig.StatusEnum status) |
void |
setThresholdAbnormal(Integer thresholdAbnormal) |
void |
setThresholdNormal(Integer thresholdNormal) |
void |
setTimeInterval(Integer timeInterval) |
void |
setTimeout(Integer timeout) |
String |
toString() |
VpcHealthConfig |
withEnableClientSsl(Boolean enableClientSsl) |
VpcHealthConfig |
withHttpCode(String httpCode) |
VpcHealthConfig |
withMethod(VpcHealthConfig.MethodEnum method) |
VpcHealthConfig |
withPath(String path) |
VpcHealthConfig |
withPort(Integer port) |
VpcHealthConfig |
withProtocol(VpcHealthConfig.ProtocolEnum protocol) |
VpcHealthConfig |
withStatus(VpcHealthConfig.StatusEnum status) |
VpcHealthConfig |
withThresholdAbnormal(Integer thresholdAbnormal) |
VpcHealthConfig |
withThresholdNormal(Integer thresholdNormal) |
VpcHealthConfig |
withTimeInterval(Integer timeInterval) |
VpcHealthConfig |
withTimeout(Integer timeout) |
public VpcHealthConfig withProtocol(VpcHealthConfig.ProtocolEnum protocol)
public VpcHealthConfig.ProtocolEnum getProtocol()
public void setProtocol(VpcHealthConfig.ProtocolEnum protocol)
public VpcHealthConfig withPath(String path)
public String getPath()
public void setPath(String path)
public VpcHealthConfig withMethod(VpcHealthConfig.MethodEnum method)
public VpcHealthConfig.MethodEnum getMethod()
public void setMethod(VpcHealthConfig.MethodEnum method)
public VpcHealthConfig withPort(Integer port)
public Integer getPort()
public void setPort(Integer port)
public VpcHealthConfig withThresholdNormal(Integer thresholdNormal)
public Integer getThresholdNormal()
public void setThresholdNormal(Integer thresholdNormal)
public VpcHealthConfig withThresholdAbnormal(Integer thresholdAbnormal)
public Integer getThresholdAbnormal()
public void setThresholdAbnormal(Integer thresholdAbnormal)
public VpcHealthConfig withTimeInterval(Integer timeInterval)
public Integer getTimeInterval()
public void setTimeInterval(Integer timeInterval)
public VpcHealthConfig withHttpCode(String httpCode)
public String getHttpCode()
public void setHttpCode(String httpCode)
public VpcHealthConfig withEnableClientSsl(Boolean enableClientSsl)
public Boolean getEnableClientSsl()
public void setEnableClientSsl(Boolean enableClientSsl)
public VpcHealthConfig withStatus(VpcHealthConfig.StatusEnum status)
public VpcHealthConfig.StatusEnum getStatus()
public void setStatus(VpcHealthConfig.StatusEnum status)
public VpcHealthConfig withTimeout(Integer timeout)
public Integer getTimeout()
public void setTimeout(Integer timeout)
Copyright © 2022. All rights reserved.