Class MetadataReportInstance

java.lang.Object
org.apache.dubbo.metadata.report.MetadataReportInstance
All Implemented Interfaces:
org.apache.dubbo.common.resource.Disposable

public class MetadataReportInstance extends Object implements org.apache.dubbo.common.resource.Disposable
Repository of MetadataReport instances that can talk to remote metadata server. MetadataReport instances are initiated during the beginning of deployer.start() and used by components that need to interact with metadata server. If multiple metadata reports and registries need to be declared, it is recommended to group each two metadata report and registry together by giving them the same id: invalid input: '<'dubbo:registry id=demo1 address="registry://"/> invalid input: '<'dubbo:metadata id=demo1 address="metadata://"/> invalid input: '<'dubbo:registry id=demo2 address="registry://"/> invalid input: '<'dubbo:metadata id=demo2 address="metadata://"/>
  • Constructor Details

    • MetadataReportInstance

      public MetadataReportInstance(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
  • Method Details

    • init

      public void init(List<org.apache.dubbo.config.MetadataReportConfig> metadataReportConfigs)
    • getMetadataReports

      public Map<String,MetadataReport> getMetadataReports(boolean checked)
    • getMetadataReport

      public MetadataReport getMetadataReport(String registryKey)
    • getNopMetadataReport

      public MetadataReport getNopMetadataReport()
    • getMetadataType

      public String getMetadataType()
    • isInitialized

      public boolean isInitialized()
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.apache.dubbo.common.resource.Disposable