Class ReportManager.Builder
java.lang.Object
org.apache.hadoop.ozone.container.common.report.ReportManager.Builder
- Enclosing class:
ReportManager
Builder to construct
ReportManager.-
Method Summary
Modifier and TypeMethodDescriptionaddPublisher(ReportPublisher publisher) Adds new ReportPublisher to the ReportManager.addPublisherFor(Class<? extends com.google.protobuf.Message> report) Adds publisher for the corresponding report.addThreadNamePrefix(String threadPrefix) build()Build and returns ReportManager.setStateContext(StateContext context) Sets theStateContext.
-
Method Details
-
setStateContext
Sets theStateContext.- Parameters:
context- StateContext- Returns:
- ReportManager.Builder
-
addPublisherFor
Adds publisher for the corresponding report.- Parameters:
report- report for which publisher needs to be added- Returns:
- ReportManager.Builder
-
addPublisher
Adds new ReportPublisher to the ReportManager.- Parameters:
publisher- ReportPublisher- Returns:
- ReportManager.Builder
-
addThreadNamePrefix
-
build
Build and returns ReportManager.- Returns:
ReportManager
-