public class CreateTCPListenersRequest extends AbstractModel
| Constructor and Description |
|---|
CreateTCPListenersRequest() |
CreateTCPListenersRequest(CreateTCPListenersRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getClientIPMethod()
Get 监听器获取客户端 IP 的方式,0表示 TOA, 1表示Proxy Protocol
|
Long |
getConnectTimeout()
Get 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。
|
Long |
getDelayLoop()
Get 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。
|
Long |
getFailoverSwitch()
Get 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启
|
String |
getGroupId()
Get 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。
|
Long |
getHealthCheck()
Get 源站是否开启健康检查:1开启,0关闭,UDP监听器不支持健康检查
|
Long |
getHealthyThreshold()
Get 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10
|
String |
getListenerName()
Get 监听器名称。
|
Long[] |
getPorts()
Get 监听器端口列表。
|
String |
getProxyId()
Get 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。
|
Long[] |
getRealServerPorts()
Get 源站端口列表,该参数仅支持v1版本监听器和通道组监听器。
|
String |
getRealServerType()
Get 监听器对应源站类型,支持IP或者DOMAIN类型。DOMAIN源站类型不支持wrr的源站调度策略。
|
String |
getScheduler()
Get 监听器源站调度策略,支持轮询(rr),加权轮询(wrr),最小连接数(lc)。
|
Long |
getUnhealthyThreshold()
Get 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10
|
void |
setClientIPMethod(Long ClientIPMethod)
Set 监听器获取客户端 IP 的方式,0表示 TOA, 1表示Proxy Protocol
|
void |
setConnectTimeout(Long ConnectTimeout)
Set 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。
|
void |
setDelayLoop(Long DelayLoop)
Set 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。
|
void |
setFailoverSwitch(Long FailoverSwitch)
Set 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启
|
void |
setGroupId(String GroupId)
Set 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。
|
void |
setHealthCheck(Long HealthCheck)
Set 源站是否开启健康检查:1开启,0关闭,UDP监听器不支持健康检查
|
void |
setHealthyThreshold(Long HealthyThreshold)
Set 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10
|
void |
setListenerName(String ListenerName)
Set 监听器名称。
|
void |
setPorts(Long[] Ports)
Set 监听器端口列表。
|
void |
setProxyId(String ProxyId)
Set 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。
|
void |
setRealServerPorts(Long[] RealServerPorts)
Set 源站端口列表,该参数仅支持v1版本监听器和通道组监听器。
|
void |
setRealServerType(String RealServerType)
Set 监听器对应源站类型,支持IP或者DOMAIN类型。DOMAIN源站类型不支持wrr的源站调度策略。
|
void |
setScheduler(String Scheduler)
Set 监听器源站调度策略,支持轮询(rr),加权轮询(wrr),最小连接数(lc)。
|
void |
setUnhealthyThreshold(Long UnhealthyThreshold)
Set 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic CreateTCPListenersRequest()
public CreateTCPListenersRequest(CreateTCPListenersRequest source)
public String getListenerName()
public void setListenerName(String ListenerName)
ListenerName - 监听器名称。public Long[] getPorts()
public void setPorts(Long[] Ports)
Ports - 监听器端口列表。public String getScheduler()
public void setScheduler(String Scheduler)
Scheduler - 监听器源站调度策略,支持轮询(rr),加权轮询(wrr),最小连接数(lc)。public Long getHealthCheck()
public void setHealthCheck(Long HealthCheck)
HealthCheck - 源站是否开启健康检查:1开启,0关闭,UDP监听器不支持健康检查public String getRealServerType()
public void setRealServerType(String RealServerType)
RealServerType - 监听器对应源站类型,支持IP或者DOMAIN类型。DOMAIN源站类型不支持wrr的源站调度策略。public String getProxyId()
public void setProxyId(String ProxyId)
ProxyId - 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。public String getGroupId()
public void setGroupId(String GroupId)
GroupId - 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。public Long getDelayLoop()
public void setDelayLoop(Long DelayLoop)
DelayLoop - 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。public Long getConnectTimeout()
public void setConnectTimeout(Long ConnectTimeout)
ConnectTimeout - 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。public Long[] getRealServerPorts()
public void setRealServerPorts(Long[] RealServerPorts)
RealServerPorts - 源站端口列表,该参数仅支持v1版本监听器和通道组监听器。public Long getClientIPMethod()
public void setClientIPMethod(Long ClientIPMethod)
ClientIPMethod - 监听器获取客户端 IP 的方式,0表示 TOA, 1表示Proxy Protocolpublic Long getFailoverSwitch()
public void setFailoverSwitch(Long FailoverSwitch)
FailoverSwitch - 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启public Long getHealthyThreshold()
public void setHealthyThreshold(Long HealthyThreshold)
HealthyThreshold - 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10public Long getUnhealthyThreshold()
public void setUnhealthyThreshold(Long UnhealthyThreshold)
UnhealthyThreshold - 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10Copyright © 2022. All rights reserved.