Package com.codahale.metrics.jvm
Class FileDescriptorRatioGauge
- java.lang.Object
-
- com.codahale.metrics.RatioGauge
-
- com.codahale.metrics.jvm.FileDescriptorRatioGauge
-
public class FileDescriptorRatioGauge extends 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
RatioGauge.Ratio
-
-
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 RatioGauge.Ratio
getRatio()
Returns theRatioGauge.Ratio
which is the gauge's current value.-
Methods inherited from class com.codahale.metrics.RatioGauge
getValue
-
-
-
-
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
-
-
Method Detail
-
getRatio
protected RatioGauge.Ratio getRatio()
Description copied from class:RatioGauge
Returns theRatioGauge.Ratio
which is the gauge's current value.- Specified by:
getRatio
in classRatioGauge
- Returns:
- the
RatioGauge.Ratio
which is the gauge's current value
-
-