Class ReportPublisherFactory
java.lang.Object
org.apache.hadoop.ozone.container.common.report.ReportPublisherFactory
Factory class to construct
ReportPublisher for a report.-
Constructor Summary
ConstructorsConstructorDescriptionReportPublisherFactory(org.apache.hadoop.hdds.conf.ConfigurationSource conf) ConstructsReportPublisherFactoryinstance. -
Method Summary
Modifier and TypeMethodDescriptiongetPublisherFor(Class<? extends com.google.protobuf.Message> report) Returns the ReportPublisher for the corresponding report.
-
Constructor Details
-
ReportPublisherFactory
public ReportPublisherFactory(org.apache.hadoop.hdds.conf.ConfigurationSource conf) ConstructsReportPublisherFactoryinstance.- Parameters:
conf- Configuration to be passed to theReportPublisher
-
-
Method Details
-
getPublisherFor
Returns the ReportPublisher for the corresponding report.- Parameters:
report- report- Returns:
- report publisher
-