Class GerritMissedEventsPlaybackEnabledChecker
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
hudson.model.AsyncPeriodicWork
com.sonyericsson.hudson.plugins.gerrit.trigger.playback.GerritMissedEventsPlaybackEnabledChecker
- All Implemented Interfaces:
ExtensionPoint,Runnable
Utility class to periodically verify whether MissedEventsPlaybackManager
can be enabled/disabled.
-
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, MIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(TaskListener listener) protected LevelNo spam in log file.longMethods inherited from class hudson.model.AsyncPeriodicWork
createListener, doRun, getErrorLoggingLevel, getLogFile, getSlowLoggingLevelMethods inherited from class hudson.model.PeriodicWork
all, getInitialDelay, initMethods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, runMethods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
GerritMissedEventsPlaybackEnabledChecker
public GerritMissedEventsPlaybackEnabledChecker()Default constructor.
-
-
Method Details
-
getNormalLoggingLevel
No spam in log file.- Overrides:
getNormalLoggingLevelin classAsyncPeriodicWork- Returns:
- FINEST level for logging.
-
execute
- Specified by:
executein classAsyncPeriodicWork- Throws:
IOExceptionInterruptedException
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriodin classPeriodicWork
-