com.alibaba.dubbo.common.URL.toFullString()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(129)

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

URL.toFullString介绍

暂无

代码示例

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

@Override
public Cache getCache(URL url, Invocation invocation) {
  url = url.addParameter(Constants.METHOD_KEY, invocation.getMethodName());
  String key = url.toFullString();
  Cache cache = caches.get(key);
  if (cache == null) {
    caches.put(key, createCache(url));
    cache = caches.get(key);
  }
  return cache;
}

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

@Override
public Cache getCache(URL url, Invocation invocation) {
  url = url.addParameter(Constants.METHOD_KEY, invocation.getMethodName());
  String key = url.toFullString();
  Cache cache = caches.get(key);
  if (cache == null) {
    caches.put(key, createCache(url));
    cache = caches.get(key);
  }
  return cache;
}

代码示例来源:origin: linux-china/dubbo3

public int compareTo(Router o) {
  if (o == null || o.getClass() != ConditionRouter.class) {
    return 1;
  }
  ConditionRouter c = (ConditionRouter) o;
  return this.priority == c.priority ? url.toFullString().compareTo(c.url.toFullString()) : (this.priority > c.priority ? 1 : -1);
}

代码示例来源:origin: net.jahhan/dubbo-cluster

public int compareTo(Router o) {
  if (o == null || o.getClass() != ConditionRouter.class) {
    return 1;
  }
  ConditionRouter c = (ConditionRouter) o;
  return this.priority == c.priority ? url.toFullString().compareTo(c.url.toFullString()) : (this.priority > c.priority ? 1 : -1);
}

代码示例来源:origin: com.alibaba/dubbo-cluster

@Override
public int compareTo(Router o) {
  if (o == null || o.getClass() != ConditionRouter.class) {
    return 1;
  }
  ConditionRouter c = (ConditionRouter) o;
  return this.priority == c.priority ? url.toFullString().compareTo(c.url.toFullString()) : (this.priority > c.priority ? 1 : -1);
}

代码示例来源:origin: com.alibaba/dubbo

@Override
public int compareTo(Router o) {
  if (o == null || o.getClass() != ConditionRouter.class) {
    return 1;
  }
  ConditionRouter c = (ConditionRouter) o;
  return this.priority == c.priority ? url.toFullString().compareTo(c.url.toFullString()) : (this.priority > c.priority ? 1 : -1);
}

代码示例来源:origin: linux-china/dubbo3

public Validator getValidator(URL url) {
  String key = url.toFullString();
  Validator validator = validators.get(key);
  if (validator == null) {
    validators.put(key, createValidator(url));
    validator = validators.get(key);
  }
  return validator;
}

代码示例来源:origin: linux-china/dubbo3

public Validator getValidator(URL url) {
  String key = url.toFullString();
  Validator validator = validators.get(key);
  if (validator == null) {
    validators.put(key, createValidator(url));
    validator = validators.get(key);
  }
  return validator;
}

代码示例来源:origin: com.alibaba/dubbo

@Override
public Validator getValidator(URL url) {
  String key = url.toFullString();
  Validator validator = validators.get(key);
  if (validator == null) {
    validators.put(key, createValidator(url));
    validator = validators.get(key);
  }
  return validator;
}

代码示例来源:origin: com.alibaba/dubbo

public ConsumerInvokerWrapper(Invoker<T> invoker, URL registryUrl, URL consumerUrl, RegistryDirectory registryDirectory) {
  this.invoker = invoker;
  this.originUrl = URL.valueOf(invoker.getUrl().toFullString());
  this.registryUrl = URL.valueOf(registryUrl.toFullString());
  this.consumerUrl = consumerUrl;
  this.registryDirectory = registryDirectory;
}

代码示例来源:origin: com.alibaba/dubbo

public ProviderInvokerWrapper(Invoker<T> invoker,URL registryUrl,URL providerUrl) {
  this.invoker = invoker;
  this.originUrl = URL.valueOf(invoker.getUrl().toFullString());
  this.registryUrl = URL.valueOf(registryUrl.toFullString());
  this.providerUrl = providerUrl;
}

代码示例来源:origin: com.alibaba/dubbo-registry-api

public ConsumerInvokerWrapper(Invoker<T> invoker, URL registryUrl, URL consumerUrl, RegistryDirectory registryDirectory) {
  this.invoker = invoker;
  this.originUrl = URL.valueOf(invoker.getUrl().toFullString());
  this.registryUrl = URL.valueOf(registryUrl.toFullString());
  this.consumerUrl = consumerUrl;
  this.registryDirectory = registryDirectory;
}

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

@Override
public Cache getCache(URL url, Invocation invocation) {
  url = url.addParameter(Constants.METHOD_KEY, invocation.getMethodName());
  String key = url.toFullString();
  Cache cache = caches.get(key);
  if (cache == null) {
    caches.put(key, createCache(url));
    cache = caches.get(key);
  }
  return cache;
}

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

@Override
public Cache getCache(URL url, Invocation invocation) {
  url = url.addParameter(Constants.METHOD_KEY, invocation.getMethodName());
  String key = url.toFullString();
  Cache cache = caches.get(key);
  if (cache == null) {
    caches.put(key, createCache(url));
    cache = caches.get(key);
  }
  return cache;
}

代码示例来源:origin: com.alibaba/dubbo

@Override
public Cache getCache(URL url, Invocation invocation) {
  url = url.addParameter(Constants.METHOD_KEY, invocation.getMethodName());
  String key = url.toFullString();
  Cache cache = caches.get(key);
  if (cache == null) {
    caches.put(key, createCache(url));
    cache = caches.get(key);
  }
  return cache;
}

代码示例来源:origin: com.alibaba/dubbo

@Override
public void leave(URL url) throws RemotingException {
  super.leave(url);
  send(LEAVE + " " + url.toFullString());
}

代码示例来源:origin: com.alibaba/dubbo

@Override
public Peer join(URL url, ChannelHandler handler) throws RemotingException {
  Peer peer = super.join(url, handler);
  send(JOIN + " " + url.toFullString());
  return peer;
}

代码示例来源:origin: com.alibaba/dubbo

@Override
public void leave(URL url) throws RemotingException {
  super.leave(url);
  send(LEAVE + " " + url.toFullString());
}

代码示例来源:origin: net.jahhan/dubbo-registry-multicast

protected void doUnsubscribe(URL url, NotifyListener listener) {
  if (! Constants.ANY_VALUE.equals(url.getServiceInterface())
      && url.getParameter(Constants.REGISTER_KEY, true)) {
    unregister(url);
  }
  broadcast(Constants.UNSUBSCRIBE + " " + url.toFullString());
}

代码示例来源:origin: com.alibaba/dubbo

@Override
protected void doUnsubscribe(URL url, NotifyListener listener) {
  if (!Constants.ANY_VALUE.equals(url.getServiceInterface())
      && url.getParameter(Constants.REGISTER_KEY, true)) {
    unregister(url);
  }
  broadcast(Constants.UNSUBSCRIBE + " " + url.toFullString());
}

相关文章

微信公众号

最新文章

更多