Class FlinkHistogramWrapper

  • All Implemented Interfaces:
    com.codahale.metrics.Counting, com.codahale.metrics.Metric, com.codahale.metrics.Sampling

    public class FlinkHistogramWrapper
    extends com.codahale.metrics.Histogram
    Wrapper to use a Flink Histogram as a Dropwizard Histogram. This is necessary to report Flink's histograms via the Dropwizard Reporter.
    • Constructor Detail

      • FlinkHistogramWrapper

        public FlinkHistogramWrapper​(Histogram histogram)
    • Method Detail

      • update

        public void update​(long value)
        Overrides:
        update in class com.codahale.metrics.Histogram
      • getCount

        public long getCount()
        Specified by:
        getCount in interface com.codahale.metrics.Counting
        Overrides:
        getCount in class com.codahale.metrics.Histogram
      • getSnapshot

        public com.codahale.metrics.Snapshot getSnapshot()
        Specified by:
        getSnapshot in interface com.codahale.metrics.Sampling
        Overrides:
        getSnapshot in class com.codahale.metrics.Histogram