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
@Extension public class GerritMissedEventsPlaybackEnabledChecker extends AsyncPeriodicWork
Utility class to periodically verify whether MissedEventsPlaybackManager can be enabled/disabled.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnable
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
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 GerritMissedEventsPlaybackEnabledChecker()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
execute(TaskListener listener)
protected Level
getNormalLoggingLevel()
No spam in log file.long
getRecurrencePeriod()
-
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, of, run
-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Method Detail
-
getNormalLoggingLevel
protected Level getNormalLoggingLevel()
No spam in log file.- Overrides:
getNormalLoggingLevel
in classAsyncPeriodicWork
- Returns:
- FINEST level for logging.
-
execute
protected void execute(TaskListener listener) throws IOException, InterruptedException
- Specified by:
execute
in classAsyncPeriodicWork
- Throws:
IOException
InterruptedException
-
getRecurrencePeriod
public long getRecurrencePeriod()
- Specified by:
getRecurrencePeriod
in classPeriodicWork
-
-