public class InMemoryWritableMetadataService extends Object implements WritableMetadataService
WritableMetadataService implementation stores the metadata of Dubbo services in memory locally when they
exported. It is used by server (provider).MetadataService,
WritableMetadataServiceALL_SERVICE_INTERFACES, ALL_SERVICE_NAMES, DEFAULT_EXTENSION, SERVICE_INTERFACE_NAME, VERSION| 构造器和说明 |
|---|
InMemoryWritableMetadataService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
blockUntilUpdated() |
boolean |
exportURL(URL url)
Exports a
URL |
SortedSet<String> |
getExportedURLs(String serviceInterface,
String group,
String version,
String protocol)
Get the sorted set of String that presents the specified Dubbo exported
urls by the
serviceInterface, group, version and protocol |
MetadataInfo |
getMetadataInfo(String revision) |
Map<String,MetadataInfo> |
getMetadataInfos() |
String |
getServiceDefinition(String serviceKey)
Interface definition.
|
String |
getServiceDefinition(String interfaceName,
String version,
String group)
Interface definition.
|
SortedSet<String> |
getSubscribedURLs()
the list of String that presents all Dubbo subscribed
urls |
void |
publishServiceDefinition(URL providerUrl) |
boolean |
subscribeURL(URL url)
Subscribes a
URL |
boolean |
unexportURL(URL url)
Unexports a
URL |
boolean |
unsubscribeURL(URL url)
Unsubscribes a
URL |
getDefaultExtension, serviceNameexportServiceDiscoveryMetadata, getAndListenServiceDiscoveryMetadata, getExportedURLs, getExportedURLs, getExportedURLs, getExportedURLs, getMetadataChangeListenerMap, isMetadataServiceURL, toSortedStrings, toSortedStrings, toURLs, versionpublic SortedSet<String> getSubscribedURLs()
MetadataServiceurlsgetSubscribedURLs 在接口中 MetadataServicesorted set of strings presenting the URLsMetadataService.toSortedStrings(Stream),
URL.toFullString()public SortedSet<String> getExportedURLs(String serviceInterface, String group, String version, String protocol)
MetadataServiceurls by the
serviceInterface, group, version and protocolgetExportedURLs 在接口中 MetadataServiceserviceInterface - The class name of Dubbo service interfacegroup - the Dubbo Service Group (optional)version - the Dubbo Service Version (optional)protocol - the Dubbo Service Protocol (optional)sorted set of strings presenting the URLsMetadataService.toSortedStrings(Stream),
URL.toFullString()public boolean exportURL(URL url)
WritableMetadataServiceURLexportURL 在接口中 WritableMetadataServiceurl - a URLtruepublic boolean unexportURL(URL url)
WritableMetadataServiceURLunexportURL 在接口中 WritableMetadataServiceurl - a URLtruepublic boolean subscribeURL(URL url)
WritableMetadataServiceURLsubscribeURL 在接口中 WritableMetadataServiceurl - a URLtruepublic boolean unsubscribeURL(URL url)
WritableMetadataServiceURLunsubscribeURL 在接口中 WritableMetadataServiceurl - a URLtruepublic void publishServiceDefinition(URL providerUrl)
public String getServiceDefinition(String interfaceName, String version, String group)
MetadataServicegetServiceDefinition 在接口中 MetadataServicepublic String getServiceDefinition(String serviceKey)
MetadataServicegetServiceDefinition 在接口中 MetadataServicepublic MetadataInfo getMetadataInfo(String revision)
getMetadataInfo 在接口中 MetadataServicepublic void blockUntilUpdated()
public Map<String,MetadataInfo> getMetadataInfos()
getMetadataInfos 在接口中 MetadataServiceCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.