Class JvmAttributeGaugeSet

  • All Implemented Interfaces:
    Metric, MetricSet

    public class JvmAttributeGaugeSet
    extends java.lang.Object
    implements MetricSet
    A set of gauges for the JVM name, vendor, and uptime.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.management.RuntimeMXBean runtime  
    • Constructor Summary

      Constructors 
      Constructor Description
      JvmAttributeGaugeSet()
      Creates a new set of gauges.
      JvmAttributeGaugeSet​(java.lang.management.RuntimeMXBean runtime)
      Creates a new set of gauges with the given RuntimeMXBean.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​Metric> getMetrics()
      A map of metric names to metrics.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • runtime

        private final java.lang.management.RuntimeMXBean runtime
    • Constructor Detail

      • JvmAttributeGaugeSet

        public JvmAttributeGaugeSet()
        Creates a new set of gauges.
      • JvmAttributeGaugeSet

        public JvmAttributeGaugeSet​(java.lang.management.RuntimeMXBean runtime)
        Creates a new set of gauges with the given RuntimeMXBean.
    • Method Detail

      • getMetrics

        public java.util.Map<java.lang.String,​Metric> getMetrics()
        Description copied from interface: MetricSet
        A map of metric names to metrics.
        Specified by:
        getMetrics in interface MetricSet
        Returns:
        the metrics