Class GraphiteStormReporter
- java.lang.Object
-
- org.apache.storm.metrics2.reporters.ScheduledStormReporter
-
- org.apache.storm.metrics2.reporters.GraphiteStormReporter
-
- All Implemented Interfaces:
com.codahale.metrics.Reporter
,Closeable
,AutoCloseable
,StormReporter
public class GraphiteStormReporter extends ScheduledStormReporter
-
-
Field Summary
Fields Modifier and Type Field Description static String
GRAPHITE_HOST
static String
GRAPHITE_PORT
static String
GRAPHITE_PREFIXED_WITH
static String
GRAPHITE_TRANSPORT
-
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 GraphiteStormReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
prepare(com.codahale.metrics.MetricRegistry metricsRegistry, Map<String,Object> topoConf, Map<String,Object> reporterConf)
-
Methods inherited from class org.apache.storm.metrics2.reporters.ScheduledStormReporter
getMetricsFilter, getReportPeriod, getReportPeriodUnit, isReportDimensionsEnabled, start, 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
-
-
-
-
Field Detail
-
GRAPHITE_PREFIXED_WITH
public static final String GRAPHITE_PREFIXED_WITH
- See Also:
- Constant Field Values
-
GRAPHITE_HOST
public static final String GRAPHITE_HOST
- See Also:
- Constant Field Values
-
GRAPHITE_PORT
public static final String GRAPHITE_PORT
- See Also:
- Constant Field Values
-
GRAPHITE_TRANSPORT
public static final String GRAPHITE_TRANSPORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
prepare
public void prepare(com.codahale.metrics.MetricRegistry metricsRegistry, Map<String,Object> topoConf, Map<String,Object> reporterConf)
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classScheduledStormReporter
- Throws:
IOException
-
-