public class RemoteWritableMetadataService extends Object implements WritableMetadataService
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| Constructor and Description |
|---|
RemoteWritableMetadataService(InMemoryWritableMetadataService writableMetadataService) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getServiceDefinition(String interfaceName,
String version,
String group)
Interface definition.
|
void |
publishServiceDefinition(org.apache.dubbo.common.URL url) |
boolean |
refreshMetadata(String exportedRevision,
String subscribedRevision)
fresh Exports
|
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultExtension, getExtension, serviceNamegetExportedURLs, getExportedURLs, getExportedURLs, getExportedURLs, getSubscribedURLs, isMetadataServiceURL, toSortedStrings, toSortedStrings, toURLs, versionpublic RemoteWritableMetadataService(InMemoryWritableMetadataService writableMetadataService)
public MetadataReport getMetadataReport()
public void publishServiceDefinition(org.apache.dubbo.common.URL url)
publishServiceDefinition in interface WritableMetadataServicepublic boolean exportURL(org.apache.dubbo.common.URL url)
WritableMetadataServiceURLexportURL in interface WritableMetadataServiceurl - a URLtruepublic boolean unexportURL(org.apache.dubbo.common.URL url)
WritableMetadataServiceURLunexportURL in interface WritableMetadataServiceurl - a URLtruepublic boolean subscribeURL(org.apache.dubbo.common.URL url)
WritableMetadataServiceURLsubscribeURL in interface WritableMetadataServiceurl - a URLtruepublic boolean unsubscribeURL(org.apache.dubbo.common.URL url)
WritableMetadataServiceURLunsubscribeURL in interface WritableMetadataServiceurl - a URLtruepublic boolean refreshMetadata(String exportedRevision, String subscribedRevision)
WritableMetadataServicerefreshMetadata in interface WritableMetadataServicetruepublic SortedSet<String> getExportedURLs(String serviceInterface, String group, String version, String protocol)
MetadataServiceurls by the
serviceInterface, group, version and protocolgetExportedURLs in interface 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 String getServiceDefinition(String interfaceName, String version, String group)
MetadataServicegetServiceDefinition in interface MetadataServicepublic String getServiceDefinition(String serviceKey)
MetadataServicegetServiceDefinition in interface MetadataServiceCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.