Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

Timer Class Reference

#include <Timer.H>

List of all members.

Public Member Functions

void update_timestamp (const char *name)
 Updates the timestamp for now.
void check_timestamps ()
void check_timestamp (const char *name, int ttl)


Detailed Description

The Timer is basically a wrapper class for updating and checking timestamps in the database that keep track of when the last time the event manager and weather manager were run. The event manager should be run every day and the weather manager should be run every hour.


Member Function Documentation

void Timer::check_timestamps  ) 
 

Checks that the managers have been run within the proper amount of time. If a manager is stale and no notification has been sent in the past day, then a notification will be sent to cs190@cs.brown.edu

void Timer::update_timestamp const char *  name  ) 
 

Updates the timestamp for now.

Parameters:
now The name of the manager whose timestamp is to be updated. Should be either "event" or "weather".


The documentation for this class was generated from the following files:
Generated on Wed May 17 22:28:21 2006 for GeoEvents by  doxygen 1.4.2