Class OperatingSystemMetricSet

  • All Implemented Interfaces:
    com.codahale.metrics.Metric, com.codahale.metrics.MetricSet

    public class OperatingSystemMetricSet
    extends Object
    implements com.codahale.metrics.MetricSet
    This is an extended replacement for FileDescriptorRatioGauge - that class uses reflection and doesn't work under Java 9. This implementation tries to retrieve bean properties from known implementations of OperatingSystemMXBean.
    • Constructor Detail

      • OperatingSystemMetricSet

        public OperatingSystemMetricSet()
    • Method Detail

      • getMetrics

        public Map<String,​com.codahale.metrics.Metric> getMetrics()
        Specified by:
        getMetrics in interface com.codahale.metrics.MetricSet