public class MetadataServiceDelegation extends Object implements MetadataService, Disposable
ALL_SERVICE_INTERFACES, VERSION| Constructor and Description |
|---|
MetadataServiceDelegation(ApplicationModel applicationModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
exportInstanceMetadata(String instanceMetadata) |
String |
getAndListenInstanceMetadata(String consumerId,
InstanceMetadataChangedListener listener) |
Set<URL> |
getExportedServiceURLs() |
SortedSet<String> |
getExportedURLs(String serviceInterface,
String group,
String version,
String protocol) |
Map<String,InstanceMetadataChangedListener> |
getInstanceMetadataChangedListenerMap() |
MetadataInfo |
getMetadataInfo(String revision) |
List<MetadataInfo> |
getMetadataInfos() |
URL |
getMetadataURL() |
String |
getServiceDefinition(String serviceKey) |
String |
getServiceDefinition(String interfaceName,
String version,
String group) |
SortedSet<String> |
getSubscribedURLs() |
String |
serviceName()
Gets the current Dubbo Service name
|
void |
setMetadataURL(URL url) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExportedURLs, getExportedURLs, getExportedURLs, getExportedURLs, isMetadataService, toSortedStrings, toSortedStrings, versionpublic MetadataServiceDelegation(ApplicationModel applicationModel)
public String serviceName()
serviceName in interface MetadataServicepublic URL getMetadataURL()
getMetadataURL in interface MetadataServicepublic void setMetadataURL(URL url)
public SortedSet<String> getSubscribedURLs()
getSubscribedURLs in interface MetadataServicepublic SortedSet<String> getExportedURLs(String serviceInterface, String group, String version, String protocol)
getExportedURLs in interface MetadataServicepublic Set<URL> getExportedServiceURLs()
getExportedServiceURLs in interface MetadataServicepublic 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 List<MetadataInfo> getMetadataInfos()
getMetadataInfos in interface MetadataServicepublic void exportInstanceMetadata(String instanceMetadata)
exportInstanceMetadata in interface MetadataServicepublic Map<String,InstanceMetadataChangedListener> getInstanceMetadataChangedListenerMap()
getInstanceMetadataChangedListenerMap in interface MetadataServicepublic String getAndListenInstanceMetadata(String consumerId, InstanceMetadataChangedListener listener)
getAndListenInstanceMetadata in interface MetadataServicepublic void destroy()
destroy in interface DisposableCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.