Class PrometheusAsyncWorker

java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
hudson.model.AsyncPeriodicWork
org.jenkinsci.plugins.prometheus.service.PrometheusAsyncWorker
All Implemented Interfaces:
hudson.ExtensionPoint, Runnable

@Extension
public class PrometheusAsyncWorker
extends hudson.model.AsyncPeriodicWork
  • Nested Class Summary

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
  • Field Summary

    Fields inherited from class hudson.model.AsyncPeriodicWork

    name

    Fields inherited from class hudson.model.PeriodicWork

    DAY, HOUR, MIN
  • Constructor Summary

    Constructors 
    Constructor Description
    PrometheusAsyncWorker()  
  • Method Summary

    Modifier and Type Method Description
    void execute​(hudson.model.TaskListener taskListener)  
    protected Level getNormalLoggingLevel()  
    long getRecurrencePeriod()  
    void setPrometheusMetrics​(PrometheusMetrics prometheusMetrics)  

    Methods inherited from class hudson.model.AsyncPeriodicWork

    createListener, doRun, getErrorLoggingLevel, getLogFile, getSlowLoggingLevel

    Methods inherited from class hudson.model.PeriodicWork

    all, getInitialDelay, init

    Methods inherited from class hudson.triggers.SafeTimerTask

    getLogsRoot, run

    Methods inherited from class java.util.TimerTask

    cancel, scheduledExecutionTime

    Methods inherited from class java.lang.Object

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

  • Method Details

    • setPrometheusMetrics

      @Inject public void setPrometheusMetrics​(PrometheusMetrics prometheusMetrics)
    • getRecurrencePeriod

      public long getRecurrencePeriod()
      Specified by:
      getRecurrencePeriod in class hudson.model.PeriodicWork
    • execute

      public void execute​(hudson.model.TaskListener taskListener)
      Specified by:
      execute in class hudson.model.AsyncPeriodicWork
    • getNormalLoggingLevel

      protected Level getNormalLoggingLevel()
      Overrides:
      getNormalLoggingLevel in class hudson.model.AsyncPeriodicWork