@SPI(value="local") public interface WritableMetadataService extends MetadataService
MetadataService that extends MetadataService and provides the modification, which is used for
Dubbo's consumers and providers.ALL_SERVICE_INTERFACES, ALL_SERVICE_NAMES, DEFAULT_EXTENSION, SERVICE_INTERFACE_NAME, VERSION| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
exportURL(org.apache.dubbo.common.URL url)
Exports a
URL |
static WritableMetadataService |
getDefaultExtension()
Get
the defautl extension of WritableMetadataService |
static WritableMetadataService |
getExtension(String name) |
void |
publishServiceDefinition(org.apache.dubbo.common.URL url) |
default boolean |
refreshMetadata(String exportedRevision,
String subscribedRevision)
已过时。
Recommend to use
MetadataServiceExporter since 2.7.8 |
default String |
serviceName()
Gets the current Dubbo Service name
|
boolean |
subscribeURL(org.apache.dubbo.common.URL url)
Subscribes a
URL |
boolean |
unexportURL(org.apache.dubbo.common.URL url)
Unexports a
URL |
boolean |
unsubscribeURL(org.apache.dubbo.common.URL url)
Unsubscribes a
URL |
getExportedURLs, getExportedURLs, getExportedURLs, getExportedURLs, getExportedURLs, getServiceDefinition, getServiceDefinition, getSubscribedURLs, isMetadataServiceURL, toSortedStrings, toSortedStrings, toURLs, versiondefault String serviceName()
serviceName 在接口中 MetadataServiceboolean exportURL(org.apache.dubbo.common.URL url)
URLurl - a URLtrueboolean unexportURL(org.apache.dubbo.common.URL url)
URLurl - a URLtrue@Deprecated default boolean refreshMetadata(String exportedRevision, String subscribedRevision)
MetadataServiceExporter since 2.7.8trueboolean subscribeURL(org.apache.dubbo.common.URL url)
URLurl - a URLtrueboolean unsubscribeURL(org.apache.dubbo.common.URL url)
URLurl - a URLtruevoid publishServiceDefinition(org.apache.dubbo.common.URL url)
static WritableMetadataService getDefaultExtension()
the defautl extension of WritableMetadataServiceInMemoryWritableMetadataServicestatic WritableMetadataService getExtension(String name)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.