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) |
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) |
getDefaultExtension, serviceNameexportServiceDiscoveryMetadata, getAndListenServiceDiscoveryMetadata, getExportedURLs, getExportedURLs, getExportedURLs, getExportedURLs, getMetadataChangeListenerMap, isMetadataServiceURL, toSortedStrings, toSortedStrings, toURLs, versionpublic SortedSet<String> getSubscribedURLs()
getSubscribedURLs 在接口中 MetadataServicepublic SortedSet<String> getExportedURLs(String serviceInterface, String group, String version, String protocol)
getExportedURLs 在接口中 MetadataServicepublic boolean exportURL(URL url)
exportURL 在接口中 WritableMetadataServicepublic boolean unexportURL(URL url)
unexportURL 在接口中 WritableMetadataServicepublic boolean subscribeURL(URL url)
subscribeURL 在接口中 WritableMetadataServicepublic boolean unsubscribeURL(URL url)
unsubscribeURL 在接口中 WritableMetadataServicepublic void publishServiceDefinition(URL providerUrl)
public String getServiceDefinition(String interfaceName, String version, String group)
getServiceDefinition 在接口中 MetadataServicepublic String getServiceDefinition(String serviceKey)
getServiceDefinition 在接口中 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.