Package io.dropwizard.metrics5.jvm
Class FileDescriptorRatioGauge
- java.lang.Object
-
- io.dropwizard.metrics5.RatioGauge
-
- io.dropwizard.metrics5.jvm.FileDescriptorRatioGauge
-
- All Implemented Interfaces:
io.dropwizard.metrics5.Gauge<Double>,io.dropwizard.metrics5.Metric
public class FileDescriptorRatioGauge extends io.dropwizard.metrics5.RatioGaugeA gauge for the ratio of used to total file descriptors.
-
-
Constructor Summary
Constructors Constructor Description FileDescriptorRatioGauge()Creates a new gauge using the platform OS bean.FileDescriptorRatioGauge(OperatingSystemMXBean os)Creates a new gauge using the given OS bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.dropwizard.metrics5.RatioGauge.RatiogetRatio()
-
-
-
Constructor Detail
-
FileDescriptorRatioGauge
public FileDescriptorRatioGauge()
Creates a new gauge using the platform OS bean.
-
FileDescriptorRatioGauge
public FileDescriptorRatioGauge(OperatingSystemMXBean os)
Creates a new gauge using the given OS bean.- Parameters:
os- anOperatingSystemMXBean
-
-