Search in sources :

Example 1 with PeriodicWork

use of hudson.model.PeriodicWork in project hudson-2.x by hudson.

the class Trigger method init.

@Initializer(after = JOB_LOADED)
public static void init() {
    new DoubleLaunchChecker().schedule();
    // start all PeridocWorks
    for (PeriodicWork p : PeriodicWork.all()) timer.scheduleAtFixedRate(p, p.getInitialDelay(), p.getRecurrencePeriod());
    // start monitoring nodes, although there's no hurry.
    timer.schedule(new SafeTimerTask() {

        public void doRun() {
            ComputerSet.initialize();
        }
    }, 1000 * 10);
}
Also used : DoubleLaunchChecker(hudson.util.DoubleLaunchChecker) PeriodicWork(hudson.model.PeriodicWork) Initializer(hudson.init.Initializer)

Aggregations

Initializer (hudson.init.Initializer)1 PeriodicWork (hudson.model.PeriodicWork)1 DoubleLaunchChecker (hudson.util.DoubleLaunchChecker)1