类 TransportConfig
java.lang.Object
com.alibaba.csp.sentinel.transport.config.TransportConfig
- 作者:
- Carpenter Lee, Jason Joo, Leo Li
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Get a list of Endpoint(protocol, ip/domain, port) indicating Sentinel Dashboard's address.
NOTE: only support HTTP and HTTPS protocolstatic StringGet the heartbeat api path.static StringGet heartbeat client local ip.static LongGet heartbeat interval in milliseconds.static StringgetPort()Get Server port of this HTTP server.static intstatic voidsetRuntimePort(int port) Set real port this HTTP server uses.
-
字段详细资料
-
构造器详细资料
-
TransportConfig
public TransportConfig()
-
-
方法详细资料
-
getHeartbeatIntervalMs
Get heartbeat interval in milliseconds.- 返回:
- heartbeat interval in milliseconds if exists, or null if not configured or invalid config
-
getConsoleServerList
Get a list of Endpoint(protocol, ip/domain, port) indicating Sentinel Dashboard's address.
NOTE: only support HTTP and HTTPS protocol- 返回:
- list of Endpoint(protocol, ip/domain, port).
May not be null.
An empty list returned when not configured.
-
getRuntimePort
public static int getRuntimePort() -
getPort
Get Server port of this HTTP server.- 返回:
- the port, maybe null if not configured.
-
setRuntimePort
public static void setRuntimePort(int port) Set real port this HTTP server uses.- 参数:
port- real port.
-
getHeartbeatClientIp
Get heartbeat client local ip. If the client ip not configured,it will be the address of local host- 返回:
- the local ip.
-
getHeartbeatApiPath
Get the heartbeat api path. If the machine registry path of the dashboard is modified, then the API path should also be consistent with the API path of the dashboard.- 返回:
- the heartbeat api path
- 从以下版本开始:
- 1.7.1
-