Class ConsoleStormReporter
java.lang.Object
org.apache.storm.metrics2.reporters.ScheduledStormReporter
org.apache.storm.metrics2.reporters.ConsoleStormReporter
- All Implemented Interfaces:
com.codahale.metrics.Reporter
,DimensionalReporter.DimensionHandler
,StormReporter
public class ConsoleStormReporter
extends ScheduledStormReporter
implements DimensionalReporter.DimensionHandler
-
Field Summary
Fields inherited from class org.apache.storm.metrics2.reporters.ScheduledStormReporter
reporter, reportingPeriod, reportingPeriodUnit
Fields inherited from interface org.apache.storm.metrics2.reporters.StormReporter
REPORT_DIMENSIONS_ENABLED, REPORT_PERIOD, REPORT_PERIOD_UNITS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
prepare
(com.codahale.metrics.MetricRegistry registry, Map<String, Object> topoConf, Map<String, Object> reporterConf) void
prepare
(MetricRegistryProvider metricRegistryProvider, Map<String, Object> topoConf, Map<String, Object> reporterConf) void
setDimensions
(Map<String, String> dimensions) Sets dimensions to be used for reporting on the next batch of metrics.Methods inherited from class org.apache.storm.metrics2.reporters.ScheduledStormReporter
getMetricsFilter, getReportPeriod, getReportPeriodUnit, isReportDimensionsEnabled, start, stop
-
Constructor Details
-
ConsoleStormReporter
public ConsoleStormReporter()
-
-
Method Details
-
prepare
public void prepare(com.codahale.metrics.MetricRegistry registry, Map<String, Object> topoConf, Map<String, Object> reporterConf) - Specified by:
prepare
in interfaceStormReporter
-
prepare
public void prepare(MetricRegistryProvider metricRegistryProvider, Map<String, Object> topoConf, Map<String, Object> reporterConf) - Specified by:
prepare
in interfaceStormReporter
-
setDimensions
Description copied from interface:DimensionalReporter.DimensionHandler
Sets dimensions to be used for reporting on the next batch of metrics.- Specified by:
setDimensions
in interfaceDimensionalReporter.DimensionHandler
- Parameters:
dimensions
- dimensions valid for use in the next scheduled report.
-