org.hackystat.telemetry.service.prefetch
Class PrefetchTask

java.lang.Object
  extended by java.util.TimerTask
      extended by org.hackystat.telemetry.service.prefetch.PrefetchTask
All Implemented Interfaces:
java.lang.Runnable

public class PrefetchTask
extends java.util.TimerTask

A TimerTask that encapsulates a TelemetryPrefetch instance. When this timer's run() method is called, it will construct a set of calls to the Telemetry analysis service from the information in the TelemetryPrefetch instance.

Author:
Philip Johnson

Constructor Summary
PrefetchTask(TelemetryPrefetch telemetryPrefetch, java.util.logging.Logger logger, java.lang.String host)
          Create a PrefetchTask, which will run all of the charts in this TelemetryPrefetch instance.
 
Method Summary
 void run()
          Invoked automatically by the associated DailyTimer task or by the PrefetchManager on startup if RunOnStartup is true.
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefetchTask

public PrefetchTask(TelemetryPrefetch telemetryPrefetch,
                    java.util.logging.Logger logger,
                    java.lang.String host)
Create a PrefetchTask, which will run all of the charts in this TelemetryPrefetch instance.

Parameters:
telemetryPrefetch - The Telemetry Prefetch instance.
logger - The logger.
host - The telemetry service host to be contacted.
Method Detail

run

public void run()
Invoked automatically by the associated DailyTimer task or by the PrefetchManager on startup if RunOnStartup is true.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask