Class FlinkGaugeWrapper<T>
- java.lang.Object
-
- org.apache.flink.dropwizard.metrics.FlinkGaugeWrapper<T>
-
- All Implemented Interfaces:
com.codahale.metrics.Gauge<T>,com.codahale.metrics.Metric
public class FlinkGaugeWrapper<T> extends Object implements com.codahale.metrics.Gauge<T>
A wrapper that allows a Flink gauge to be used as a DropWizard gauge.
-
-
Constructor Summary
Constructors Constructor Description FlinkGaugeWrapper(org.apache.flink.metrics.Gauge<T> gauge)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> FlinkGaugeWrapper<T>fromGauge(org.apache.flink.metrics.Gauge<?> gauge)TgetValue()
-
-
-
Constructor Detail
-
FlinkGaugeWrapper
public FlinkGaugeWrapper(org.apache.flink.metrics.Gauge<T> gauge)
-
-
Method Detail
-
fromGauge
public static <T> FlinkGaugeWrapper<T> fromGauge(org.apache.flink.metrics.Gauge<?> gauge)
-
-