public class ConfigurableMetadataServiceExporter extends Object implements MetadataServiceExporter
MetadataServiceExporter implementation based on Dubbo configurations, the clients
should make sure the ApplicationConfig, RegistryConfig and ProtocolConfig are ready before
export().
Typically, do not worry about their ready status, because they are initialized before
any ServiceConfig exports, or The Dubbo export will be failed.
Being aware of it's not a thread-safe implementation.
MetadataServiceExporter,
ServiceConfig,
ConfigManager| Constructor and Description |
|---|
ConfigurableMetadataServiceExporter(MetadataService metadataService) |
| Modifier and Type | Method and Description |
|---|---|
ConfigurableMetadataServiceExporter |
export()
Exports the
MetadataService as a Dubbo service |
List<URL> |
getExportedURLs()
Get the
URLs that were exported |
boolean |
isExported()
MetadataService is export or not |
ConfigurableMetadataServiceExporter |
unexport()
Unexports the
MetadataService |
public ConfigurableMetadataServiceExporter(MetadataService metadataService)
public ConfigurableMetadataServiceExporter export()
MetadataServiceExporterMetadataService as a Dubbo serviceexport in interface MetadataServiceExporteritselfpublic ConfigurableMetadataServiceExporter unexport()
MetadataServiceExporterMetadataServiceunexport in interface MetadataServiceExporteritselfpublic List<URL> getExportedURLs()
MetadataServiceExporterURLs that were exportedgetExportedURLs in interface MetadataServiceExporterpublic boolean isExported()
MetadataServiceExporterMetadataService is export or notisExported in interface MetadataServiceExporterMetadataServiceExporter.export() was executed, return true, or falseCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.