Package org.apache.heron.api.metric
Interface IMetricsRegister
-
- All Known Subinterfaces:
TopologyContext
public interface IMetricsRegister
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends IMetric<U>,U>
TregisterMetric(String name, T metric, int timeBucketSizeInSecs)
Register an IMetric instance.
-
-
-
Method Detail
-
registerMetric
<T extends IMetric<U>,U> T registerMetric(String name, T metric, int timeBucketSizeInSecs)
Register an IMetric instance. Heron will then call getValueAndReset on the metric every timeBucketSizeInSecs and the returned value is sent to all metrics consumers. You must call this during IBolt::prepare or ISpout::open.- Returns:
- The IMetric argument unchanged.
-
-