Class UpTimeGauge

  • All Implemented Interfaces:
    org.apache.flink.metrics.Gauge<Long>, org.apache.flink.metrics.Metric

    public class UpTimeGauge
    extends Object
    implements org.apache.flink.metrics.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()
        Specified by:
        getValue in interface org.apache.flink.metrics.Gauge<Long>