public class RemoteWritableMetadataService extends AbstractAbstractWritableMetadataService
WritableMetadataService implementation stores the metadata of Dubbo services in metadata center when they
exported.
It is used by server (provider).ALL_SERVICE_INTERFACES, ALL_SERVICE_NAMES, DEFAULT_EXTENSION, SERVICE_INTERFACE_NAME, VERSION| 构造器和说明 |
|---|
RemoteWritableMetadataService() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
exportURL(org.apache.dubbo.common.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 |
MetadataReport |
getMetadataReport() |
String |
getServiceDefinition(String serviceKey)
Interface definition.
|
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 MetadataReport getMetadataReport()
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 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 String getServiceDefinition(String serviceKey)
MetadataServicepublic SortedSet<String> getSubscribedURLs()
MetadataServiceurlssorted set of strings presenting the URLsMetadataService.toSortedStrings(Stream),
URL.toFullString()Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.