Interface IMetricsRegister

  • All Known Subinterfaces:
    TopologyContext

    public interface IMetricsRegister
    • 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.