Class FlinkHistogramWrapper
- java.lang.Object
-
- com.codahale.metrics.Histogram
-
- org.apache.flink.dropwizard.metrics.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 FlinkHistogram
as a DropwizardHistogram
. This is necessary to report Flink's histograms via the DropwizardReporter
.
-
-
Constructor Summary
Constructors Constructor Description FlinkHistogramWrapper(Histogram histogram)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCount()
com.codahale.metrics.Snapshot
getSnapshot()
void
update(long value)
-
-
-
Constructor Detail
-
FlinkHistogramWrapper
public FlinkHistogramWrapper(Histogram histogram)
-
-
Method Detail
-
update
public void update(long value)
- Overrides:
update
in classcom.codahale.metrics.Histogram
-
getCount
public long getCount()
- Specified by:
getCount
in interfacecom.codahale.metrics.Counting
- Overrides:
getCount
in classcom.codahale.metrics.Histogram
-
getSnapshot
public com.codahale.metrics.Snapshot getSnapshot()
- Specified by:
getSnapshot
in interfacecom.codahale.metrics.Sampling
- Overrides:
getSnapshot
in classcom.codahale.metrics.Histogram
-
-