类 TransportConfig

java.lang.Object
com.alibaba.csp.sentinel.transport.config.TransportConfig

public class TransportConfig extends Object
作者:
Carpenter Lee, Jason Joo, Leo Li
  • 字段详细资料

  • 构造器详细资料

    • TransportConfig

      public TransportConfig()
  • 方法详细资料

    • getHeartbeatIntervalMs

      public static Long getHeartbeatIntervalMs()
      Get heartbeat interval in milliseconds.
      返回:
      heartbeat interval in milliseconds if exists, or null if not configured or invalid config
    • getConsoleServerList

      public static List<Endpoint> 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

      public static String 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

      public static String getHeartbeatClientIp()
      Get heartbeat client local ip. If the client ip not configured,it will be the address of local host
      返回:
      the local ip.
    • getHeartbeatApiPath

      public static String 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