public abstract class AbstractServiceNameMapping extends Object implements ServiceNameMapping
DEFAULT_MAPPING_GROUP| 构造器和说明 |
|---|
AbstractServiceNameMapping(org.apache.dubbo.rpc.model.ApplicationModel applicationModel) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
$destroy() |
abstract Set<String> |
get(org.apache.dubbo.common.URL url)
Get the service names from the specified Dubbo service interface, group, version and protocol
|
abstract Set<String> |
getAndListen(org.apache.dubbo.common.URL url,
MappingListener mappingListener)
Get the service names from the specified Dubbo service interface, group, version and protocol
|
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.
|
Set<String> |
getMapping(org.apache.dubbo.common.URL consumerURL) |
Lock |
getMappingLock(String key) |
Set<String> |
getRemoteMapping(org.apache.dubbo.common.URL consumerURL) |
void |
putCachedMapping(String serviceKey,
Set<String> apps) |
Set<String> |
removeCachedMapping(String serviceKey) |
void |
setApplicationModel(org.apache.dubbo.rpc.model.ApplicationModel applicationModel) |
MappingListener |
stopListen(org.apache.dubbo.common.URL subscribeURL,
MappingListener listener) |
buildGroup, buildMappingKey, getAppNames, getDefaultExtension, getMappingByUrl, hasValidMetadataCenter, map, toStringKeyspublic AbstractServiceNameMapping(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
public void setApplicationModel(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
public abstract Set<String> get(org.apache.dubbo.common.URL url)
public abstract Set<String> getAndListen(org.apache.dubbo.common.URL url, MappingListener mappingListener)
public Set<String> getAndListen(org.apache.dubbo.common.URL registryURL, org.apache.dubbo.common.URL subscribedURL, MappingListener listener)
ServiceNameMappinggetAndListen 在接口中 ServiceNameMappinglistener - listener that will be notified on mapping changepublic MappingListener stopListen(org.apache.dubbo.common.URL subscribeURL, MappingListener listener)
stopListen 在接口中 ServiceNameMappingpublic void putCachedMapping(String serviceKey, Set<String> apps)
putCachedMapping 在接口中 ServiceNameMappingpublic Set<String> getMapping(org.apache.dubbo.common.URL consumerURL)
getMapping 在接口中 ServiceNameMappingpublic Set<String> getRemoteMapping(org.apache.dubbo.common.URL consumerURL)
getRemoteMapping 在接口中 ServiceNameMappingpublic Set<String> removeCachedMapping(String serviceKey)
removeCachedMapping 在接口中 ServiceNameMappingpublic void $destroy()
$destroy 在接口中 org.apache.dubbo.rpc.service.DestroyableCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.