Class ReportPublisherFactory

java.lang.Object
org.apache.hadoop.ozone.container.common.report.ReportPublisherFactory

public class ReportPublisherFactory extends Object
Factory class to construct ReportPublisher for a report.
  • Constructor Details

    • ReportPublisherFactory

      public ReportPublisherFactory(org.apache.hadoop.hdds.conf.ConfigurationSource conf)
      Constructs ReportPublisherFactory instance.
      Parameters:
      conf - Configuration to be passed to the ReportPublisher
  • Method Details

    • getPublisherFor

      public ReportPublisher getPublisherFor(Class<? extends com.google.protobuf.Message> report)
      Returns the ReportPublisher for the corresponding report.
      Parameters:
      report - report
      Returns:
      report publisher