public interface MetadataService
| Modifier and Type | Field and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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 |
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)
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.