类 AbstractServiceNameMapping
- java.lang.Object
-
- org.apache.dubbo.metadata.AbstractServiceNameMapping
-
- 所有已实现的接口:
ServiceNameMapping,org.apache.dubbo.rpc.model.ScopeModelAware,org.apache.dubbo.rpc.service.Destroyable
public abstract class AbstractServiceNameMapping extends Object implements ServiceNameMapping, org.apache.dubbo.rpc.model.ScopeModelAware
-
-
字段概要
-
从接口继承的字段 org.apache.dubbo.metadata.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 protocolSet<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.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 protocolMap<String,Set<String>>getCachedMapping()Set<String>getCachedMapping(String mappingKey)Set<String>getCachedMapping(org.apache.dubbo.common.URL consumerURL)LockgetMappingLock(String key)Set<String>getRemoteMapping(org.apache.dubbo.common.URL consumerURL)voidinitInterfaceAppMapping(org.apache.dubbo.common.URL subscribedURL)Init mapping from local storage and url parameter.voidputCachedMapping(String serviceKey, Set<String> apps)Set<String>removeCachedMapping(String serviceKey)voidsetApplicationModel(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)MappingListenerstopListen(org.apache.dubbo.common.URL subscribeURL, MappingListener listener)-
从接口继承的方法 org.apache.dubbo.rpc.model.ScopeModelAware
setFrameworkModel, setModuleModel, setScopeModel
-
从接口继承的方法 org.apache.dubbo.metadata.ServiceNameMapping
map
-
-
-
-
方法详细资料
-
setApplicationModel
public void setApplicationModel(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
- 指定者:
setApplicationModel在接口中org.apache.dubbo.rpc.model.ScopeModelAware
-
get
public abstract Set<String> get(org.apache.dubbo.common.URL url)
Get the service names from the specified Dubbo service interface, group, version and protocol- 返回:
-
getAndListen
public 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- 返回:
-
initInterfaceAppMapping
public void initInterfaceAppMapping(org.apache.dubbo.common.URL subscribedURL)
从接口复制的说明:ServiceNameMappingInit mapping from local storage and url parameter.- 指定者:
initInterfaceAppMapping在接口中ServiceNameMapping
-
getAndListen
public Set<String> getAndListen(org.apache.dubbo.common.URL registryURL, org.apache.dubbo.common.URL subscribedURL, MappingListener listener)
从接口复制的说明:ServiceNameMappingGet the latest mapping result from remote center and register listener at the same time to get notified once mapping changes.- 指定者:
getAndListen在接口中ServiceNameMappinglistener- listener that will be notified on mapping change- 返回:
- the latest mapping result from remote center
-
stopListen
public MappingListener stopListen(org.apache.dubbo.common.URL subscribeURL, MappingListener listener)
- 指定者:
stopListen在接口中ServiceNameMapping
-
putCachedMapping
public void putCachedMapping(String serviceKey, Set<String> apps)
- 指定者:
putCachedMapping在接口中ServiceNameMapping
-
getCachedMapping
public Set<String> getCachedMapping(String mappingKey)
- 指定者:
getCachedMapping在接口中ServiceNameMapping
-
getCachedMapping
public Set<String> getCachedMapping(org.apache.dubbo.common.URL consumerURL)
- 指定者:
getCachedMapping在接口中ServiceNameMapping
-
getRemoteMapping
public Set<String> getRemoteMapping(org.apache.dubbo.common.URL consumerURL)
- 指定者:
getRemoteMapping在接口中ServiceNameMapping
-
removeCachedMapping
public Set<String> removeCachedMapping(String serviceKey)
- 指定者:
removeCachedMapping在接口中ServiceNameMapping
-
getCachedMapping
public Map<String,Set<String>> getCachedMapping()
- 指定者:
getCachedMapping在接口中ServiceNameMapping
-
$destroy
public void $destroy()
- 指定者:
$destroy在接口中org.apache.dubbo.rpc.service.Destroyable
-
-