Public Types | Public Member Functions | Data Fields

UpdateEntry Class Reference

#include <Update.h>

Collaboration diagram for UpdateEntry:
Collaboration graph
[legend]

Public Types

enum  {
  MIN_OFFSET_HOUR = 0, MAX_OFFSET_HOUR = 23, MIN_INTERVAL = 0, MAX_INTERVAL = 86400,
  MIN_DEPTH = 0, MAX_DEPTH = 128, SECONDS_PER_HOUR = 3600, SECONDS_PER_MIN = 60
}

Public Member Functions

 UpdateEntry ()
 ~UpdateEntry ()
void Init (int derived_url=0)
int ValidURL (char *, char *)
int ValidHeaders (char *)
int BuildHttpRequest ()
int ValidHeaderNameChar (char)
int ValidSeparatorChar (char)
int ValidHour (char *)
int ValidInterval (char *)
int ValidDepth (char *)
int TerminalURL ()
void SetTerminalStatus (int)
void ComputeScheduleTime ()
int ScheduleNow (time_t)
 LINK (UpdateEntry, link)

Data Fields

UpdateEntry_group_link
UpdateEntry_hash_link
int _id
char * _url
URL _URLhandle
INK_MD5 _url_md5
int _terminal_url
char * _request_headers
int _num_request_headers
HTTPHdr_http_hdr
HTTPParser _http_parser
int _offset_hour
int _interval
int _max_depth
time_t _start_time
int _expired
int _scheme_index
int _update_event_status
Ptr< UpdateConfigList_indirect_list

Detailed Description

Definition at line 121 of file Update.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
MIN_OFFSET_HOUR 
MAX_OFFSET_HOUR 
MIN_INTERVAL 
MAX_INTERVAL 
MIN_DEPTH 
MAX_DEPTH 
SECONDS_PER_HOUR 
SECONDS_PER_MIN 

Definition at line 127 of file Update.h.


Constructor & Destructor Documentation

UpdateEntry::UpdateEntry (  ) 

Definition at line 225 of file Update.cc.

References _http_parser, and http_parser_init().

UpdateEntry::~UpdateEntry (  ) 

Member Function Documentation

int UpdateEntry::BuildHttpRequest (  ) 
void UpdateEntry::ComputeScheduleTime (  ) 
void UpdateEntry::Init ( int  derived_url = 0  ) 
UpdateEntry::LINK ( UpdateEntry  ,
link   
)
int UpdateEntry::ScheduleNow ( time_t  cur_time  ) 

Definition at line 565 of file Update.cc.

References _expired, and _start_time.

Referenced by UpdateScheduler::ScheduleEvent().

void UpdateEntry::SetTerminalStatus ( int  term_url  ) 

Definition at line 514 of file Update.cc.

References _terminal_url.

Referenced by RecursiveHttpGet::RecursiveHttpGetEvent().

int UpdateEntry::TerminalURL (  ) 

Definition at line 520 of file Update.cc.

References _terminal_url.

Referenced by RecursiveHttpGet::RecursiveHttpGetEvent().

int UpdateEntry::ValidDepth ( char *  s  ) 

Definition at line 499 of file Update.cc.

References _max_depth, MAX_DEPTH, and MIN_DEPTH.

Referenced by UpdateConfigManager::ParseConfigFile().

int UpdateEntry::ValidHeaderNameChar ( char  c  ) 

Definition at line 429 of file Update.cc.

References ValidSeparatorChar().

Referenced by ValidHeaders().

int UpdateEntry::ValidHeaders ( char *  s  ) 
int UpdateEntry::ValidHour ( char *  s  ) 

Definition at line 472 of file Update.cc.

References _offset_hour, MAX_OFFSET_HOUR, and MIN_OFFSET_HOUR.

Referenced by UpdateConfigManager::ParseConfigFile().

int UpdateEntry::ValidInterval ( char *  s  ) 

Definition at line 485 of file Update.cc.

References _interval, MAX_INTERVAL, and MIN_INTERVAL.

Referenced by UpdateConfigManager::ParseConfigFile().

int UpdateEntry::ValidSeparatorChar ( char  c  ) 

Definition at line 443 of file Update.cc.

Referenced by ValidHeaderNameChar().

int UpdateEntry::ValidURL ( char *  s,
char *  e 
)

Field Documentation

Definition at line 185 of file Update.h.

Referenced by ComputeScheduleTime(), and ScheduleNow().

Definition at line 153 of file Update.h.

Referenced by RecursiveHttpGet::RecursiveHttpGetEvent().

Definition at line 154 of file Update.h.

Referenced by UpdateConfigList::HashAdd().

Definition at line 171 of file Update.h.

Referenced by BuildHttpRequest(), UpdateSM::http_scheme(), and ~UpdateEntry().

Definition at line 172 of file Update.h.

Referenced by BuildHttpRequest(), and UpdateEntry().

Definition at line 170 of file Update.h.

Referenced by UpdateConfigManager::ParseConfigFile(), and ValidHeaders().

Definition at line 177 of file Update.h.

Referenced by ComputeScheduleTime(), UpdateConfigManager::ParseConfigFile(), and ValidHour().

Definition at line 187 of file Update.h.

Referenced by UpdateSM::HandleSMEvent().

Definition at line 184 of file Update.h.

Referenced by ComputeScheduleTime(), and ScheduleNow().

Definition at line 164 of file Update.h.

Referenced by SetTerminalStatus(), and TerminalURL().

Definition at line 163 of file Update.h.

Referenced by UpdateConfigList::HashAdd(), and RecursiveHttpGet::RecursiveHttpGetEvent().


The documentation for this class was generated from the following files: