com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger
Class GerritTriggerTimer

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerTimer

public final class GerritTriggerTimer
extends Object

Manages the timer that is used for each GerritTrigger TimerTask that is active.

Author:
Fredrik Abrahamson <fredrik.abrahamson@sonymobile.com>

Method Summary
static GerritTriggerTimer getInstance()
          Returns the instance, and creates it first if needed.
 void schedule(TimerTask timerTask, String serverName)
          Schedule a TimerTask according to the two constants above.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GerritTriggerTimer getInstance()
Returns the instance, and creates it first if needed.

Returns:
the instance of this class

schedule

public void schedule(TimerTask timerTask,
                     String serverName)
Schedule a TimerTask according to the two constants above.

Parameters:
timerTask - the subclass of TimerTask to be scheduled
serverName - the name of the Gerrit server.


Copyright © 2004-2013. All Rights Reserved.