Class ConsoleStormReporter
- java.lang.Object
-
- org.apache.storm.metrics2.reporters.ScheduledStormReporter
-
- org.apache.storm.metrics2.reporters.ConsoleStormReporter
-
- All Implemented Interfaces:
com.codahale.metrics.Reporter
,Closeable
,AutoCloseable
,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
Constructors Constructor Description ConsoleStormReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
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
-
-
-
-
Method Detail
-
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
public void setDimensions(Map<String,String> dimensions)
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.
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classScheduledStormReporter
- Throws:
IOException
-
-