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.RatioGauge
A gauge for the ratio of used to total file descriptors.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.dropwizard.metrics5.RatioGauge
io.dropwizard.metrics5.RatioGauge.Ratio
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new gauge using the platform OS bean.Creates a new gauge using the given OS bean. -
Method Summary
Methods inherited from class io.dropwizard.metrics5.RatioGauge
getValue
-
Constructor Details
-
FileDescriptorRatioGauge
public FileDescriptorRatioGauge()Creates a new gauge using the platform OS bean. -
FileDescriptorRatioGauge
Creates a new gauge using the given OS bean.- Parameters:
os
- anOperatingSystemMXBean
-
-
Method Details
-
getRatio
protected io.dropwizard.metrics5.RatioGauge.Ratio getRatio()- Specified by:
getRatio
in classio.dropwizard.metrics5.RatioGauge
-