@SPI(value="metadata",
scope=APPLICATION)
public interface ServiceNameMapping
extends org.apache.dubbo.rpc.service.Destroyable
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_MAPPING_GROUP |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
buildGroup(String serviceInterface) |
static String |
buildMappingKey(org.apache.dubbo.common.URL url) |
Set<String> |
getAndListen(org.apache.dubbo.common.URL registryURL,
org.apache.dubbo.common.URL subscribedURL,
MappingListener listener)
Get the latest mapping result from remote center and register listener at the same time to get notified once mapping changes.
|
static Set<String> |
getAppNames(String content) |
static ServiceNameMapping |
getDefaultExtension(org.apache.dubbo.rpc.model.ScopeModel scopeModel)
Get the default extension of
ServiceNameMapping |
Set<String> |
getMapping(org.apache.dubbo.common.URL consumerURL) |
static Set<String> |
getMappingByUrl(org.apache.dubbo.common.URL consumerURL) |
Set<String> |
getRemoteMapping(org.apache.dubbo.common.URL consumerURL) |
boolean |
hasValidMetadataCenter() |
boolean |
map(org.apache.dubbo.common.URL url)
Map the specified Dubbo service interface, group, version and protocol to current Dubbo service name
|
void |
putCachedMapping(String serviceKey,
Set<String> apps) |
Set<String> |
removeCachedMapping(String serviceKey) |
MappingListener |
stopListen(org.apache.dubbo.common.URL subscribeURL,
MappingListener listener) |
static String |
toStringKeys(Set<String> serviceNames) |
$destroyboolean map(org.apache.dubbo.common.URL url)
boolean hasValidMetadataCenter()
static ServiceNameMapping getDefaultExtension(org.apache.dubbo.rpc.model.ScopeModel scopeModel)
ServiceNameMappingServiceNameMappingstatic String buildMappingKey(org.apache.dubbo.common.URL url)
Set<String> getAndListen(org.apache.dubbo.common.URL registryURL, org.apache.dubbo.common.URL subscribedURL, MappingListener listener)
listener - listener that will be notified on mapping changeMappingListener stopListen(org.apache.dubbo.common.URL subscribeURL, MappingListener listener)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.