public class TCPListener extends AbstractModel
| Constructor and Description |
|---|
TCPListener() |
TCPListener(TCPListener 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 |
getBindStatus()
Get 监听器绑定的源站状态, 其中:
0表示异常;
1表示正常。
|
Long |
getClientIPMethod()
Get 监听器获取客户端 IP 的方式,0表示TOA, 1表示Proxy Protocol
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getConnectTimeout()
Get 源站健康检查响应超时时间,单位:秒
|
Long |
getCreateTime()
Get 监听器创建时间,Unix时间戳
|
Long |
getDelayLoop()
Get 源站健康检查时间间隔,单位:秒
|
Long |
getFailoverSwitch()
Get 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getHealthCheck()
Get 监听器是否开启健康检查,其中:
0表示关闭;
1表示开启
|
Long |
getHealthyThreshold()
Get 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getListenerId()
Get 监听器ID
|
String |
getListenerName()
Get 监听器名称
|
Long |
getListenerStatus()
Get 监听器状态,其中:
0表示运行中;
1表示创建中;
2表示销毁中;
3表示源站调整中;
4表示配置变更中。
|
Long |
getPort()
Get 监听器端口
|
String |
getProtocol()
Get 监听器协议, TCP
|
Long |
getRealServerPort()
Get 监听器转发源站端口,仅对版本为1.0的通道有效
注意:此字段可能返回 null,表示取不到有效值。
|
BindRealServer[] |
getRealServerSet()
Get 监听器绑定的源站信息
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getRealServerType()
Get 监听器绑定源站类型
|
String |
getScheduler()
Get 监听器源站访问策略,其中:
rr表示轮询;
wrr表示加权轮询;
lc表示最小连接数。
|
Long |
getSessionPersist()
Get 是否开启会话保持选项:0关闭, 非0开启,非0值为会话保持时间
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getUnhealthyThreshold()
Get 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setBindStatus(Long BindStatus)
Set 监听器绑定的源站状态, 其中:
0表示异常;
1表示正常。
|
void |
setClientIPMethod(Long ClientIPMethod)
Set 监听器获取客户端 IP 的方式,0表示TOA, 1表示Proxy Protocol
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setConnectTimeout(Long ConnectTimeout)
Set 源站健康检查响应超时时间,单位:秒
|
void |
setCreateTime(Long CreateTime)
Set 监听器创建时间,Unix时间戳
|
void |
setDelayLoop(Long DelayLoop)
Set 源站健康检查时间间隔,单位:秒
|
void |
setFailoverSwitch(Long FailoverSwitch)
Set 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setHealthCheck(Long HealthCheck)
Set 监听器是否开启健康检查,其中:
0表示关闭;
1表示开启
|
void |
setHealthyThreshold(Long HealthyThreshold)
Set 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setListenerId(String ListenerId)
Set 监听器ID
|
void |
setListenerName(String ListenerName)
Set 监听器名称
|
void |
setListenerStatus(Long ListenerStatus)
Set 监听器状态,其中:
0表示运行中;
1表示创建中;
2表示销毁中;
3表示源站调整中;
4表示配置变更中。
|
void |
setPort(Long Port)
Set 监听器端口
|
void |
setProtocol(String Protocol)
Set 监听器协议, TCP
|
void |
setRealServerPort(Long RealServerPort)
Set 监听器转发源站端口,仅对版本为1.0的通道有效
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setRealServerSet(BindRealServer[] RealServerSet)
Set 监听器绑定的源站信息
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setRealServerType(String RealServerType)
Set 监听器绑定源站类型
|
void |
setScheduler(String Scheduler)
Set 监听器源站访问策略,其中:
rr表示轮询;
wrr表示加权轮询;
lc表示最小连接数。
|
void |
setSessionPersist(Long SessionPersist)
Set 是否开启会话保持选项:0关闭, 非0开启,非0值为会话保持时间
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setUnhealthyThreshold(Long UnhealthyThreshold)
Set 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10
注意:此字段可能返回 null,表示取不到有效值。
|
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 TCPListener()
public TCPListener(TCPListener source)
public String getListenerId()
public void setListenerId(String ListenerId)
ListenerId - 监听器IDpublic String getListenerName()
public void setListenerName(String ListenerName)
ListenerName - 监听器名称public Long getPort()
public void setPort(Long Port)
Port - 监听器端口public Long getRealServerPort()
public void setRealServerPort(Long RealServerPort)
RealServerPort - 监听器转发源站端口,仅对版本为1.0的通道有效
注意:此字段可能返回 null,表示取不到有效值。public String getRealServerType()
public void setRealServerType(String RealServerType)
RealServerType - 监听器绑定源站类型public String getProtocol()
public void setProtocol(String Protocol)
Protocol - 监听器协议, TCPpublic Long getListenerStatus()
public void setListenerStatus(Long ListenerStatus)
ListenerStatus - 监听器状态,其中:
0表示运行中;
1表示创建中;
2表示销毁中;
3表示源站调整中;
4表示配置变更中。public String getScheduler()
public void setScheduler(String Scheduler)
Scheduler - 监听器源站访问策略,其中:
rr表示轮询;
wrr表示加权轮询;
lc表示最小连接数。public Long getConnectTimeout()
public void setConnectTimeout(Long ConnectTimeout)
ConnectTimeout - 源站健康检查响应超时时间,单位:秒public Long getDelayLoop()
public void setDelayLoop(Long DelayLoop)
DelayLoop - 源站健康检查时间间隔,单位:秒public Long getHealthCheck()
public void setHealthCheck(Long HealthCheck)
HealthCheck - 监听器是否开启健康检查,其中:
0表示关闭;
1表示开启public Long getBindStatus()
public void setBindStatus(Long BindStatus)
BindStatus - 监听器绑定的源站状态, 其中:
0表示异常;
1表示正常。public BindRealServer[] getRealServerSet()
public void setRealServerSet(BindRealServer[] RealServerSet)
RealServerSet - 监听器绑定的源站信息
注意:此字段可能返回 null,表示取不到有效值。public Long getCreateTime()
public void setCreateTime(Long CreateTime)
CreateTime - 监听器创建时间,Unix时间戳public Long getClientIPMethod()
public void setClientIPMethod(Long ClientIPMethod)
ClientIPMethod - 监听器获取客户端 IP 的方式,0表示TOA, 1表示Proxy Protocol
注意:此字段可能返回 null,表示取不到有效值。public Long getHealthyThreshold()
public void setHealthyThreshold(Long HealthyThreshold)
HealthyThreshold - 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10
注意:此字段可能返回 null,表示取不到有效值。public Long getUnhealthyThreshold()
public void setUnhealthyThreshold(Long UnhealthyThreshold)
UnhealthyThreshold - 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10
注意:此字段可能返回 null,表示取不到有效值。public Long getFailoverSwitch()
public void setFailoverSwitch(Long FailoverSwitch)
FailoverSwitch - 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启
注意:此字段可能返回 null,表示取不到有效值。public Long getSessionPersist()
public void setSessionPersist(Long SessionPersist)
SessionPersist - 是否开启会话保持选项:0关闭, 非0开启,非0值为会话保持时间
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2022. All rights reserved.