类 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)SortedSet<String>getExportedURLs(String serviceInterface, String group, String version, String protocol)MetadataInfogetMetadataInfo(String revision)Map<String,MetadataInfo>getMetadataInfos()StringgetServiceDefinition(String serviceKey)StringgetServiceDefinition(String interfaceName, String version, String group)SortedSet<String>getSubscribedURLs()voidpublishServiceDefinition(URL providerUrl)booleansubscribeURL(URL url)booleanunexportURL(URL url)booleanunsubscribeURL(URL url)-
从接口继承的方法 org.apache.dubbo.metadata.MetadataService
exportServiceDiscoveryMetadata, getAndListenServiceDiscoveryMetadata, getExportedURLs, getExportedURLs, getExportedURLs, getExportedURLs, getMetadataChangeListenerMap, version
-
从接口继承的方法 org.apache.dubbo.metadata.WritableMetadataService
serviceName
-
-
-
-
方法详细资料
-
getSubscribedURLs
public SortedSet<String> getSubscribedURLs()
- 指定者:
getSubscribedURLs在接口中MetadataService
-
getExportedURLs
public SortedSet<String> getExportedURLs(String serviceInterface, String group, String version, String protocol)
- 指定者:
getExportedURLs在接口中MetadataService
-
exportURL
public boolean exportURL(URL url)
- 指定者:
exportURL在接口中WritableMetadataService
-
unexportURL
public boolean unexportURL(URL url)
- 指定者:
unexportURL在接口中WritableMetadataService
-
subscribeURL
public boolean subscribeURL(URL url)
- 指定者:
subscribeURL在接口中WritableMetadataService
-
unsubscribeURL
public boolean unsubscribeURL(URL url)
- 指定者:
unsubscribeURL在接口中WritableMetadataService
-
publishServiceDefinition
public void publishServiceDefinition(URL providerUrl)
-
getServiceDefinition
public String getServiceDefinition(String interfaceName, String version, String group)
- 指定者:
getServiceDefinition在接口中MetadataService
-
getServiceDefinition
public String getServiceDefinition(String serviceKey)
- 指定者:
getServiceDefinition在接口中MetadataService
-
getMetadataInfo
public MetadataInfo getMetadataInfo(String revision)
- 指定者:
getMetadataInfo在接口中MetadataService
-
blockUntilUpdated
public void blockUntilUpdated()
-
getMetadataInfos
public Map<String,MetadataInfo> getMetadataInfos()
- 指定者:
getMetadataInfos在接口中MetadataService
-
-