public interface MetadataService
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ALL_SERVICE_INTERFACES
The value of All service instances
|
static String |
VERSION
The contract version of
MetadataService, the future update must make sure compatible. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
exportInstanceMetadata(String instanceMetadata)
Export Metadata in Service Instance of Service Discovery
Used for consumer to get Service Instance Metadata
if Registry is unsupported with publishing metadata
|
String |
getAndListenInstanceMetadata(String consumerId,
InstanceMetadataChangedListener listener)
1.
|
default Set<org.apache.dubbo.common.URL> |
getExportedServiceURLs() |
default SortedSet<String> |
getExportedURLs()
Get the
sorted set of String that presents all Dubbo exported urls |
default SortedSet<String> |
getExportedURLs(String serviceInterface)
Get the
sorted set of String that presents the specified Dubbo exported urls by the serviceInterface |
default SortedSet<String> |
getExportedURLs(String serviceInterface,
String group)
Get the
sorted set of String that presents the specified Dubbo exported urls by the
serviceInterface and group |
default SortedSet<String> |
getExportedURLs(String serviceInterface,
String group,
String version)
Get the
sorted set of String that presents the specified Dubbo exported urls by the
serviceInterface, group and version |
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 |
Map<String,InstanceMetadataChangedListener> |
getInstanceMetadataChangedListenerMap()
Get all Metadata listener from local
Used for consumer to get Service Instance Metadata
if Registry is unsupported with publishing metadata
|
MetadataInfo |
getMetadataInfo(String revision) |
List<MetadataInfo> |
getMetadataInfos() |
org.apache.dubbo.common.URL |
getMetadataURL() |
String |
getServiceDefinition(String serviceKey) |
default String |
getServiceDefinition(String interfaceName,
String version,
String group)
Interface definition.
|
default SortedSet<String> |
getSubscribedURLs()
the list of String that presents all Dubbo subscribed
urls |
static boolean |
isMetadataService(String interfaceName) |
String |
serviceName()
Gets the current Dubbo Service name
|
static SortedSet<String> |
toSortedStrings(Iterable<org.apache.dubbo.common.URL> iterable)
|
static SortedSet<String> |
toSortedStrings(Stream<org.apache.dubbo.common.URL> stream)
|
default String |
version()
Gets the version of
MetadataService that always equals VERSION |
static final String ALL_SERVICE_INTERFACES
static final String VERSION
MetadataService, the future update must make sure compatible.String serviceName()
default String version()
MetadataService that always equals VERSIONVERSIONorg.apache.dubbo.common.URL getMetadataURL()
default SortedSet<String> getSubscribedURLs()
urlssorted set of strings presenting the URLstoSortedStrings(Stream),
URL.toFullString()default SortedSet<String> getExportedURLs()
sorted set of String that presents all Dubbo exported urlssorted set of strings presenting the URLstoSortedStrings(Stream),
URL.toFullString()default SortedSet<String> getExportedURLs(String serviceInterface)
sorted set of String that presents the specified Dubbo exported urls by the serviceInterfaceserviceInterface - The class name of Dubbo service interfacesorted set of strings presenting the URLstoSortedStrings(Stream),
URL.toFullString()default SortedSet<String> getExportedURLs(String serviceInterface, String group)
sorted set of String that presents the specified Dubbo exported urls by the
serviceInterface and groupserviceInterface - The class name of Dubbo service interfacegroup - the Dubbo Service Group (optional)sorted set of strings presenting the URLstoSortedStrings(Stream),
URL.toFullString()default SortedSet<String> getExportedURLs(String serviceInterface, String group, String version)
sorted set of String that presents the specified Dubbo exported urls by the
serviceInterface, group and versionserviceInterface - The class name of Dubbo service interfacegroup - the Dubbo Service Group (optional)version - the Dubbo Service Version (optional)sorted set of strings presenting the URLstoSortedStrings(Stream),
URL.toFullString()SortedSet<String> getExportedURLs(String serviceInterface, String group, String version, String protocol)
urls 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 URLstoSortedStrings(Stream),
URL.toFullString()default Set<org.apache.dubbo.common.URL> getExportedServiceURLs()
default String getServiceDefinition(String interfaceName, String version, String group)
MetadataInfo getMetadataInfo(String revision)
List<MetadataInfo> getMetadataInfos()
static SortedSet<String> toSortedStrings(Iterable<org.apache.dubbo.common.URL> iterable)
iterable - Iterable of URLsorted set of strings presentingURL.toFullString()static SortedSet<String> toSortedStrings(Stream<org.apache.dubbo.common.URL> stream)
stream - Stream of URLsorted set of strings presentingURL.toFullString()static boolean isMetadataService(String interfaceName)
void exportInstanceMetadata(String instanceMetadata)
Used for consumer to get Service Instance Metadata if Registry is unsupported with publishing metadata
instanceMetadata - Map of provider Service Instance MetadataMap<String,InstanceMetadataChangedListener> getInstanceMetadataChangedListenerMap()
Used for consumer to get Service Instance Metadata if Registry is unsupported with publishing metadata
Map of InstanceMetadataChangedListenerString getAndListenInstanceMetadata(String consumerId, InstanceMetadataChangedListener listener)
Used for consumer to get Service Instance Metadata if Registry is unsupported with publishing metadata
consumerId - consumerIdlistener - InstanceMetadataChangedListener used to notify eventMap of provider Service Instance MetadataCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.