Class ScheduledStormReporter
java.lang.Object
org.apache.storm.metrics2.reporters.ScheduledStormReporter
- All Implemented Interfaces:
com.codahale.metrics.Reporter
,StormReporter
- Direct Known Subclasses:
ConsoleStormReporter
,CsvStormReporter
,GraphiteStormReporter
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.codahale.metrics.ScheduledReporter
protected long
protected TimeUnit
Fields inherited from interface org.apache.storm.metrics2.reporters.StormReporter
REPORT_DIMENSIONS_ENABLED, REPORT_PERIOD, REPORT_PERIOD_UNITS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StormMetricsFilter
getMetricsFilter
(Map<String, Object> reporterConf) static long
getReportPeriod
(Map<String, Object> reporterConf) static TimeUnit
getReportPeriodUnit
(Map<String, Object> reporterConf) static boolean
isReportDimensionsEnabled
(Map<String, Object> reporterConf) void
start()
void
stop()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.storm.metrics2.reporters.StormReporter
prepare, prepare
-
Field Details
-
reporter
protected com.codahale.metrics.ScheduledReporter reporter -
reportingPeriod
protected long reportingPeriod -
reportingPeriodUnit
-
-
Constructor Details
-
ScheduledStormReporter
public ScheduledStormReporter()
-
-
Method Details
-
getReportPeriodUnit
-
getReportPeriod
-
isReportDimensionsEnabled
-
getMetricsFilter
-
start
public void start()- Specified by:
start
in interfaceStormReporter
-
stop
public void stop()- Specified by:
stop
in interfaceStormReporter
-