类 InMemoryWritableMetadataService
- java.lang.Object
-
- org.apache.dubbo.registry.client.metadata.store.InMemoryWritableMetadataService
-
- 所有已实现的接口:
MetadataService,WritableMetadataService
public class InMemoryWritableMetadataService extends Object implements WritableMetadataService
TheWritableMetadataServiceimplementation stores the metadata of Dubbo services in memory locally when they exported. It is used by server (provider).- 从以下版本开始:
- 2.7.5
- 另请参阅:
MetadataService,WritableMetadataService
-
-
字段概要
-
从接口继承的字段 org.apache.dubbo.metadata.MetadataService
ALL_SERVICE_INTERFACES, ALL_SERVICE_NAMES, DEFAULT_EXTENSION, SERVICE_INTERFACE_NAME, VERSION
-
-
构造器概要
构造器 构造器 说明 InMemoryWritableMetadataService()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidblockUntilUpdated()booleanexportURL(URL url)Exports aURLSortedSet<String>getExportedURLs(String serviceInterface, String group, String version, String protocol)Get the sorted set of String that presents the specified Dubbo exportedurlsby theserviceInterface,group,versionandprotocolMetadataInfogetMetadataInfo(String revision)Map<String,MetadataInfo>getMetadataInfos()StringgetServiceDefinition(String serviceKey)Interface definition.StringgetServiceDefinition(String interfaceName, String version, String group)Interface definition.SortedSet<String>getSubscribedURLs()the list of String that presents all Dubbo subscribedurlsvoidpublishServiceDefinition(URL providerUrl)booleansubscribeURL(URL url)Subscribes aURLbooleanunexportURL(URL url)Unexports aURLbooleanunsubscribeURL(URL url)Unsubscribes aURL-
从接口继承的方法 org.apache.dubbo.metadata.MetadataService
exportServiceDiscoveryMetadata, getAndListenServiceDiscoveryMetadata, getExportedURLs, getExportedURLs, getExportedURLs, getExportedURLs, getMetadataChangeListenerMap, version
-
从接口继承的方法 org.apache.dubbo.metadata.WritableMetadataService
serviceName
-
-
-
-
方法详细资料
-
getSubscribedURLs
public SortedSet<String> getSubscribedURLs()
从接口复制的说明:MetadataServicethe list of String that presents all Dubbo subscribedurls- 指定者:
getSubscribedURLs在接口中MetadataService- 返回:
- the non-null read-only
sorted setofstringspresenting theURLs - 另请参阅:
MetadataService.toSortedStrings(Stream),URL.toFullString()
-
getExportedURLs
public SortedSet<String> getExportedURLs(String serviceInterface, String group, String version, String protocol)
从接口复制的说明:MetadataServiceGet the sorted set of String that presents the specified Dubbo exportedurlsby theserviceInterface,group,versionandprotocol- 指定者:
getExportedURLs在接口中MetadataService- 参数:
serviceInterface- The class name of Dubbo service interfacegroup- the Dubbo Service Group (optional)version- the Dubbo Service Version (optional)protocol- the Dubbo Service Protocol (optional)- 返回:
- the non-null read-only
sorted setofstringspresenting theURLs - 另请参阅:
MetadataService.toSortedStrings(Stream),URL.toFullString()
-
exportURL
public boolean exportURL(URL url)
从接口复制的说明:WritableMetadataServiceExports aURL- 指定者:
exportURL在接口中WritableMetadataService- 参数:
url- aURL- 返回:
- If success , return
true
-
unexportURL
public boolean unexportURL(URL url)
从接口复制的说明:WritableMetadataServiceUnexports aURL- 指定者:
unexportURL在接口中WritableMetadataService- 参数:
url- aURL- 返回:
- If success , return
true
-
subscribeURL
public boolean subscribeURL(URL url)
从接口复制的说明:WritableMetadataServiceSubscribes aURL- 指定者:
subscribeURL在接口中WritableMetadataService- 参数:
url- aURL- 返回:
- If success , return
true
-
unsubscribeURL
public boolean unsubscribeURL(URL url)
从接口复制的说明:WritableMetadataServiceUnsubscribes aURL- 指定者:
unsubscribeURL在接口中WritableMetadataService- 参数:
url- aURL- 返回:
- If success , return
true
-
publishServiceDefinition
public void publishServiceDefinition(URL providerUrl)
-
getServiceDefinition
public String getServiceDefinition(String interfaceName, String version, String group)
从接口复制的说明:MetadataServiceInterface definition.- 指定者:
getServiceDefinition在接口中MetadataService- 返回:
-
getServiceDefinition
public String getServiceDefinition(String serviceKey)
从接口复制的说明:MetadataServiceInterface definition.- 指定者:
getServiceDefinition在接口中MetadataService- 返回:
-
getMetadataInfo
public MetadataInfo getMetadataInfo(String revision)
- 指定者:
getMetadataInfo在接口中MetadataService
-
blockUntilUpdated
public void blockUntilUpdated()
-
getMetadataInfos
public Map<String,MetadataInfo> getMetadataInfos()
- 指定者:
getMetadataInfos在接口中MetadataService
-
-