Class HistoryImportTask
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
hudson.model.AsyncPeriodicWork
io.jenkins.plugins.dorametrics.collectors.HistoryImportTask
- All Implemented Interfaces:
ExtensionPoint,Runnable
Runs the build history import once, shortly after the plugin is first installed.
Whether it has run is kept in the global configuration rather than inferred from the store being empty: an instance whose jobs do not match the filters, or which had no builds in the window, would leave the store empty and be rescanned on every restart.
This is periodic rather than one-shot so that an instance still starting up, or one whose configuration was unavailable on the first pass, gets another attempt.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnableNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.AsyncPeriodicWork
nameFields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.model.AsyncPeriodicWork
createListener, doRun, getErrorLoggingLevel, getLogFile, getNormalLoggingLevel, getSlowLoggingLevel, queueIfAlreadyRunningMethods inherited from class hudson.model.PeriodicWork
all, initMethods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, runMethods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
HistoryImportTask
public HistoryImportTask()
-
-
Method Details
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriodin classPeriodicWork
-
getInitialDelay
public long getInitialDelay()- Overrides:
getInitialDelayin classPeriodicWork
-
execute
- Specified by:
executein classAsyncPeriodicWork
-