org.hackystat.telemetry.service.prefetch
Class DailyTimer

java.lang.Object
  extended by org.hackystat.telemetry.service.prefetch.DailyTimer

public class DailyTimer
extends java.lang.Object

Provides a timer task that runs each day at the specified number of minutes past midnight, and then invokes the run() method of all of the tasks associated with its TimerTaskManager.

Author:
Philip M. Johnson

Constructor Summary
DailyTimer(int minutesPastMidnight, PrefetchTask prefetchTask)
          Creates a new DailyTimer, which runs each day at minutesPastMidnight.
 
Method Summary
 java.util.Date getTriggerTime()
          Returns the Date indicating the time this task is next scheduled to run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DailyTimer

public DailyTimer(int minutesPastMidnight,
                  PrefetchTask prefetchTask)
Creates a new DailyTimer, which runs each day at minutesPastMidnight.

Parameters:
minutesPastMidnight - The time when the tasks in the associated TimerTaskManager run.
prefetchTask - The PrefetchTask associated with this timer.
Method Detail

getTriggerTime

public java.util.Date getTriggerTime()
Returns the Date indicating the time this task is next scheduled to run.

Returns:
The trigger time.