类 MetricsHttpAgent

java.lang.Object
com.alibaba.nacos.client.config.http.MetricsHttpAgent
所有已实现的接口:
HttpAgent, com.alibaba.nacos.common.lifecycle.Closeable

public class MetricsHttpAgent extends Object implements HttpAgent
MetricsHttpAgent.
作者:
Nacos
  • 构造器详细资料

    • MetricsHttpAgent

      public MetricsHttpAgent(HttpAgent httpAgent)
  • 方法详细资料

    • start

      public void start() throws com.alibaba.nacos.api.exception.NacosException
      从接口复制的说明: HttpAgent
      start to get nacos ip list.
      指定者:
      start 在接口中 HttpAgent
      抛出:
      com.alibaba.nacos.api.exception.NacosException - on get ip list error.
    • httpGet

      public com.alibaba.nacos.common.http.HttpRestResult<String> httpGet(String path, Map<String,String> headers, Map<String,String> paramValues, String encode, long readTimeoutMs) throws Exception
      从接口复制的说明: HttpAgent
      invoke http get method.
      指定者:
      httpGet 在接口中 HttpAgent
      参数:
      path - http path
      headers - http headers
      paramValues - http paramValues http
      encode - http encode
      readTimeoutMs - http timeout
      返回:
      HttpResult http response
      抛出:
      Exception - If an input or output exception occurred
    • httpPost

      public com.alibaba.nacos.common.http.HttpRestResult<String> httpPost(String path, Map<String,String> headers, Map<String,String> paramValues, String encode, long readTimeoutMs) throws Exception
      从接口复制的说明: HttpAgent
      invoke http post method.
      指定者:
      httpPost 在接口中 HttpAgent
      参数:
      path - http path
      headers - http headers
      paramValues - http paramValues http
      encode - http encode
      readTimeoutMs - http timeout
      返回:
      HttpResult http response
      抛出:
      Exception - If an input or output exception occurred
    • httpDelete

      public com.alibaba.nacos.common.http.HttpRestResult<String> httpDelete(String path, Map<String,String> headers, Map<String,String> paramValues, String encode, long readTimeoutMs) throws Exception
      从接口复制的说明: HttpAgent
      invoke http delete method.
      指定者:
      httpDelete 在接口中 HttpAgent
      参数:
      path - http path
      headers - http headers
      paramValues - http paramValues http
      encode - http encode
      readTimeoutMs - http timeout
      返回:
      HttpResult http response
      抛出:
      Exception - If an input or output exception occurred
    • getName

      public String getName()
      从接口复制的说明: HttpAgent
      get name.
      指定者:
      getName 在接口中 HttpAgent
      返回:
      String
    • getNamespace

      public String getNamespace()
      从接口复制的说明: HttpAgent
      get namespace.
      指定者:
      getNamespace 在接口中 HttpAgent
      返回:
      String
    • getTenant

      public String getTenant()
      从接口复制的说明: HttpAgent
      get tenant.
      指定者:
      getTenant 在接口中 HttpAgent
      返回:
      String
    • getEncode

      public String getEncode()
      从接口复制的说明: HttpAgent
      get encode.
      指定者:
      getEncode 在接口中 HttpAgent
      返回:
      String
    • shutdown

      public void shutdown() throws com.alibaba.nacos.api.exception.NacosException
      指定者:
      shutdown 在接口中 com.alibaba.nacos.common.lifecycle.Closeable
      抛出:
      com.alibaba.nacos.api.exception.NacosException