org.apache.dubbo.common.URL.getUrlParameter()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中org.apache.dubbo.common.URL.getUrlParameter()方法的一些代码示例,展示了URL.getUrlParameter()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URL.getUrlParameter()方法的具体详情如下:
包路径:org.apache.dubbo.common.URL
类名称:URL
方法名:getUrlParameter

URL.getUrlParameter介绍

暂无

代码示例

代码示例来源:origin: apache/incubator-dubbo

@Override
public URL getUrlParameter(String key) {
  org.apache.dubbo.common.URL result = super.getUrlParameter(key);
  return new URL(result);
}

代码示例来源:origin: apache/incubator-dubbo

@Override
public URL getUrlParameter(String key) {
  org.apache.dubbo.common.URL result = super.getUrlParameter(key);
  return new URL(result);
}

代码示例来源:origin: apache/incubator-dubbo

/**
 * The collector logic, it will be handled by the default monitor
 *
 * @param invoker
 * @param invocation
 * @param result     the invoke result
 * @param remoteHost the remote host address
 * @param start      the timestamp the invoke begin
 * @param error      if there is an error on the invoke
 */
private void collect(Invoker<?> invoker, Invocation invocation, Result result, String remoteHost, long start, boolean error) {
  try {
    URL monitorUrl = invoker.getUrl().getUrlParameter(Constants.MONITOR_KEY);
    Monitor monitor = monitorFactory.getMonitor(monitorUrl);
    if (monitor == null) {
      return;
    }
    URL statisticsURL = createStatisticsUrl(invoker, invocation, result, remoteHost, start, error);
    monitor.collect(statisticsURL);
  } catch (Throwable t) {
    logger.warn("Failed to monitor count service " + invoker.getUrl() + ", cause: " + t.getMessage(), t);
  }
}

代码示例来源:origin: apache/incubator-dubbo

/**
 * The collector logic, it will be handled by the default monitor
 *
 * @param invoker
 * @param invocation
 * @param result     the invoke result
 * @param remoteHost the remote host address
 * @param start      the timestamp the invoke begin
 * @param error      if there is an error on the invoke
 */
private void collect(Invoker<?> invoker, Invocation invocation, Result result, String remoteHost, long start, boolean error) {
  try {
    URL monitorUrl = invoker.getUrl().getUrlParameter(Constants.MONITOR_KEY);
    Monitor monitor = monitorFactory.getMonitor(monitorUrl);
    if (monitor == null) {
      return;
    }
    URL statisticsURL = createStatisticsUrl(invoker, invocation, result, remoteHost, start, error);
    monitor.collect(statisticsURL);
  } catch (Throwable t) {
    logger.warn("Failed to monitor count service " + invoker.getUrl() + ", cause: " + t.getMessage(), t);
  }
}

代码示例来源:origin: org.apache.dubbo/dubbo

@Override
public URL getUrlParameter(String key) {
  org.apache.dubbo.common.URL result = super.getUrlParameter(key);
  return new URL(result);
}

代码示例来源:origin: org.apache.dubbo/dubbo-compatible

@Override
public URL getUrlParameter(String key) {
  org.apache.dubbo.common.URL result = super.getUrlParameter(key);
  return new URL(result);
}

代码示例来源:origin: org.apache.dubbo/dubbo

/**
 * The collector logic, it will be handled by the default monitor
 *
 * @param invoker
 * @param invocation
 * @param result     the invoke result
 * @param remoteHost the remote host address
 * @param start      the timestamp the invoke begin
 * @param error      if there is an error on the invoke
 */
private void collect(Invoker<?> invoker, Invocation invocation, Result result, String remoteHost, long start, boolean error) {
  try {
    URL monitorUrl = invoker.getUrl().getUrlParameter(Constants.MONITOR_KEY);
    Monitor monitor = monitorFactory.getMonitor(monitorUrl);
    if (monitor == null) {
      return;
    }
    URL statisticsURL = createStatisticsUrl(invoker, invocation, result, remoteHost, start, error);
    monitor.collect(statisticsURL);
  } catch (Throwable t) {
    logger.warn("Failed to monitor count service " + invoker.getUrl() + ", cause: " + t.getMessage(), t);
  }
}

代码示例来源:origin: org.apache.dubbo/dubbo-monitor-api

/**
 * The collector logic, it will be handled by the default monitor
 *
 * @param invoker
 * @param invocation
 * @param result     the invoke result
 * @param remoteHost the remote host address
 * @param start      the timestamp the invoke begin
 * @param error      if there is an error on the invoke
 */
private void collect(Invoker<?> invoker, Invocation invocation, Result result, String remoteHost, long start, boolean error) {
  try {
    URL monitorUrl = invoker.getUrl().getUrlParameter(Constants.MONITOR_KEY);
    Monitor monitor = monitorFactory.getMonitor(monitorUrl);
    if (monitor == null) {
      return;
    }
    URL statisticsURL = createStatisticsUrl(invoker, invocation, result, remoteHost, start, error);
    monitor.collect(statisticsURL);
  } catch (Throwable t) {
    logger.warn("Failed to monitor count service " + invoker.getUrl() + ", cause: " + t.getMessage(), t);
  }
}

相关文章

微信公众号

最新文章

更多