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| Constructor and Description |
|---|
InMemoryWritableMetadataService() |
| Modifier and Type | Method and Description |
|---|---|
void |
blockUntilUpdated() |
boolean |
exportURL(URL url) |
SortedSet<String> |
getExportedURLs(String serviceInterface,
String group,
String version,
String protocol) |
MetadataInfo |
getMetadataInfo(String revision) |
Map<String,MetadataInfo> |
getMetadataInfos() |
String |
getServiceDefinition(String serviceKey) |
String |
getServiceDefinition(String interfaceName,
String version,
String group) |
SortedSet<String> |
getSubscribedURLs() |
void |
publishServiceDefinition(URL providerUrl) |
boolean |
subscribeURL(URL url) |
boolean |
unexportURL(URL url) |
boolean |
unsubscribeURL(URL url) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultExtension, serviceNameexportServiceDiscoveryMetadata, getAndListenServiceDiscoveryMetadata, getExportedURLs, getExportedURLs, getExportedURLs, getExportedURLs, getMetadataChangeListenerMap, isMetadataServiceURL, toSortedStrings, toSortedStrings, toURLs, versionpublic SortedSet<String> getSubscribedURLs()
getSubscribedURLs in interface MetadataServicepublic SortedSet<String> getExportedURLs(String serviceInterface, String group, String version, String protocol)
getExportedURLs in interface MetadataServicepublic boolean exportURL(URL url)
exportURL in interface WritableMetadataServicepublic boolean unexportURL(URL url)
unexportURL in interface WritableMetadataServicepublic boolean subscribeURL(URL url)
subscribeURL in interface WritableMetadataServicepublic boolean unsubscribeURL(URL url)
unsubscribeURL in interface WritableMetadataServicepublic void publishServiceDefinition(URL providerUrl)
publishServiceDefinition in interface WritableMetadataServicepublic String getServiceDefinition(String interfaceName, String version, String group)
getServiceDefinition in interface MetadataServicepublic String getServiceDefinition(String serviceKey)
getServiceDefinition in interface MetadataServicepublic MetadataInfo getMetadataInfo(String revision)
getMetadataInfo in interface MetadataServicepublic void blockUntilUpdated()
public Map<String,MetadataInfo> getMetadataInfos()
getMetadataInfos in interface MetadataServiceCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.