@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| Modifier and Type | Method and Description |
|---|---|
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 providerUrl) |
default boolean |
refreshMetadata(String exportedRevision,
String subscribedRevision)
fresh Exports
|
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 in interface MetadataServiceboolean exportURL(org.apache.dubbo.common.URL url)
URLurl - a URLtrueboolean unexportURL(org.apache.dubbo.common.URL url)
URLurl - a URLtruedefault boolean refreshMetadata(String exportedRevision, String subscribedRevision)
trueboolean 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 providerUrl)
static WritableMetadataService getDefaultExtension()
the defautl extension of WritableMetadataServiceInMemoryWritableMetadataServicestatic WritableMetadataService getExtension(String name)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.