Package com.codahale.metrics.jvm
Class FileDescriptorRatioGauge
java.lang.Object
com.codahale.metrics.RatioGauge
com.codahale.metrics.jvm.FileDescriptorRatioGauge
- All Implemented Interfaces:
com.codahale.metrics.Gauge<Double>
,com.codahale.metrics.Metric
public class FileDescriptorRatioGauge
extends com.codahale.metrics.RatioGauge
A gauge for the ratio of used to total file descriptors.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.codahale.metrics.RatioGauge
com.codahale.metrics.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 com.codahale.metrics.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 com.codahale.metrics.RatioGauge.Ratio getRatio()- Specified by:
getRatio
in classcom.codahale.metrics.RatioGauge
-