Class UpTimeGauge

  • All Implemented Interfaces:
    Gauge<Long>, Metric

    public class UpTimeGauge
    extends Object
    implements Gauge<Long>
    A gauge that returns (in milliseconds) how long a job has been running.

    For jobs that are not running any more, it returns -1L.

    • Method Detail

      • getValue

        public Long getValue()
        Description copied from interface: Gauge
        Calculates and returns the measured value.
        Specified by:
        getValue in interface Gauge<Long>
        Returns:
        calculated value