Package org.apache.storm.task
Interface IMetricsContext
- All Known Implementing Classes:
TopologyContext
,TridentOperationContext
public interface IMetricsContext
-
Method Summary
Modifier and TypeMethodDescriptioncom.codahale.metrics.Counter
registerCounter
(String name) <T> com.codahale.metrics.Gauge<T>
registerGauge
(String name, com.codahale.metrics.Gauge<T> gauge) com.codahale.metrics.Histogram
registerHistogram
(String name) com.codahale.metrics.Meter
registerMeter
(String name) registerMetric
(String name, ICombiner combiner, int timeBucketSizeInSecs) Deprecated.in favor of metrics v2 (the non-deprecated methods on this class)registerMetric
(String name, IReducer reducer, int timeBucketSizeInSecs) Deprecated.in favor of metrics v2 (the non-deprecated methods on this class)<T extends IMetric>
TregisterMetric
(String name, T metric, int timeBucketSizeInSecs) Deprecated.in favor of metrics v2 (the non-deprecated methods on this class)void
registerMetricSet
(String prefix, com.codahale.metrics.MetricSet set) com.codahale.metrics.Timer
registerTimer
(String name)
-
Method Details
-
registerMetric
Deprecated.in favor of metrics v2 (the non-deprecated methods on this class)Register metric. -
registerMetric
Deprecated.in favor of metrics v2 (the non-deprecated methods on this class)Register metric. -
registerMetric
@Deprecated CombinedMetric registerMetric(String name, ICombiner combiner, int timeBucketSizeInSecs) Deprecated.in favor of metrics v2 (the non-deprecated methods on this class)Register metric. -
registerTimer
-
registerHistogram
-
registerMeter
-
registerCounter
-
registerGauge
-
registerMetricSet
-