Class VitamGarbageCollectorGauge

  • All Implemented Interfaces:
    com.codahale.metrics.Gauge<java.lang.Double>, com.codahale.metrics.Metric

    public class VitamGarbageCollectorGauge
    extends java.lang.Object
    implements com.codahale.metrics.Gauge<java.lang.Double>
    Garbage Collector Gauge
    • Constructor Summary

      Constructors 
      Constructor Description
      VitamGarbageCollectorGauge()
      Creates a new gauge for all discoverable garbage collectors.
      VitamGarbageCollectorGauge​(java.util.Collection<java.lang.management.GarbageCollectorMXBean> garbageCollectors)
      Creates a new gauge for the given collection of garbage collectors.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double getValue()  
      • Methods inherited from class java.lang.Object

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

      • VitamGarbageCollectorGauge

        public VitamGarbageCollectorGauge()
        Creates a new gauge for all discoverable garbage collectors.
      • VitamGarbageCollectorGauge

        public VitamGarbageCollectorGauge​(java.util.Collection<java.lang.management.GarbageCollectorMXBean> garbageCollectors)
        Creates a new gauge for the given collection of garbage collectors.
        Parameters:
        garbageCollectors - the garbage collectors
    • Method Detail

      • getValue

        public java.lang.Double getValue()
        Specified by:
        getValue in interface com.codahale.metrics.Gauge<java.lang.Double>