public class InMemoryWritableMetadataService extends AbstractAbstractWritableMetadataService
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() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
exportURL(org.apache.dubbo.common.URL url)
Exports a
URL |
Map<String,SortedSet<org.apache.dubbo.common.URL>> |
getExportedServiceURLs() |
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 |
String |
getServiceDefinition(String serviceDefinitionKey)
Interface definition.
|
Map<String,String> |
getServiceDefinitions() |
Map<String,SortedSet<org.apache.dubbo.common.URL>> |
getSubscribedServiceURLs() |
SortedSet<String> |
getSubscribedURLs()
the list of String that presents all Dubbo subscribed
urls |
boolean |
subscribeURL(org.apache.dubbo.common.URL url)
Subscribes a
URL |
boolean |
unexportURL(org.apache.dubbo.common.URL url)
Unexports a
URL |
boolean |
unsubscribeURL(org.apache.dubbo.common.URL url)
Unsubscribes a
URL |
publishServiceDefinitiongetDefaultExtension, getExtension, refreshMetadata, serviceNamegetExportedURLs, getExportedURLs, getExportedURLs, getExportedURLs, getServiceDefinition, isMetadataServiceURL, toSortedStrings, toSortedStrings, toURLs, versionpublic SortedSet<String> getSubscribedURLs()
MetadataServiceurlssorted 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 protocolserviceInterface - 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(org.apache.dubbo.common.URL url)
WritableMetadataServiceURLurl - a URLtruepublic boolean unexportURL(org.apache.dubbo.common.URL url)
WritableMetadataServiceURLurl - a URLtruepublic boolean subscribeURL(org.apache.dubbo.common.URL url)
WritableMetadataServiceURLurl - a URLtruepublic boolean unsubscribeURL(org.apache.dubbo.common.URL url)
WritableMetadataServiceURLurl - a URLtruepublic String getServiceDefinition(String serviceDefinitionKey)
MetadataServicepublic Map<String,SortedSet<org.apache.dubbo.common.URL>> getExportedServiceURLs()
public Map<String,SortedSet<org.apache.dubbo.common.URL>> getSubscribedServiceURLs()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.