Class GerritTriggerTimerTask

java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerTimerTask
All Implemented Interfaces:
Runnable

public class GerritTriggerTimerTask extends SafeTimerTask
TimerTasks that are created from a GerritTrigger and periodically calls GerritTrigger.updateTriggerConfigURL().
Author:
Fredrik Abrahamson <fredrik.abrahamson@sonymobile.com>
  • Method Details

    • doRun

      public void doRun()
      Called periodically by the GerritTriggerTimer according to its schedule.
      Specified by:
      doRun in class SafeTimerTask
    • cancel

      public boolean cancel()
      Overrides:
      cancel in class TimerTask
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getGerritTrigger

      @CheckForNull public GerritTrigger getGerritTrigger()
      The GerritTrigger that created this timerTask.
      Returns:
      the trigger.