接口 Configurator
-
- 所有超级接口:
Comparable<Configurator>
public interface Configurator extends Comparable<Configurator>
Configurator. (SPI, Prototype, ThreadSafe)
-
-
方法概要
所有方法 静态方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default intcompareTo(Configurator o)Sort by host, then by priority 1. the url with a specific host ip should have higher priority than 0.0.0.0 2. if two url has the same host, compare by priority value;org.apache.dubbo.common.URLconfigure(org.apache.dubbo.common.URL url)Configure the provider url.org.apache.dubbo.common.URLgetUrl()Get the configurator url.static Optional<List<Configurator>>toConfigurators(List<org.apache.dubbo.common.URL> urls)Convert override urls to map for use when re-refer.
-
-
-
方法详细资料
-
getUrl
org.apache.dubbo.common.URL getUrl()
Get the configurator url.- 返回:
- configurator url.
-
configure
org.apache.dubbo.common.URL configure(org.apache.dubbo.common.URL url)
Configure the provider url.- 参数:
url- - old provider url.- 返回:
- new provider url.
-
toConfigurators
static Optional<List<Configurator>> toConfigurators(List<org.apache.dubbo.common.URL> urls)
Convert override urls to map for use when re-refer. Send all rules every time, the urls will be reassembled and calculated URL contract:- override://0.0.0.0/...( or override://ip:port...?anyhost=true)¶1=value1... means global rules (all of the providers take effect)
- override://ip:port...?anyhost=false Special rules (only for a certain provider)
- override:// rule is not supported... ,needs to be calculated by registry itself
- override://0.0.0.0/ without parameters means clearing the override
- 参数:
urls- URL list to convert- 返回:
- converted configurator list
-
compareTo
default int compareTo(Configurator o)
Sort by host, then by priority 1. the url with a specific host ip should have higher priority than 0.0.0.0 2. if two url has the same host, compare by priority value;- 指定者:
compareTo在接口中Comparable<Configurator>
-
-