Public Member Functions | Data Fields

HostDBInfo Struct Reference

#include <I_HostDBProcessor.h>

Collaboration diagram for HostDBInfo:
Collaboration graph
[legend]

Public Member Functions

sockaddr * ip ()
 Internal IP address data.
sockaddr const * ip () const
char * hostname ()
char * srvname (HostDBRoundRobin *rr)
HostDBRoundRobinrr ()
void bad ()
 Indicate that the HostDBInfo is BAD and should be deleted.
unsigned int ip_interval ()
int ip_time_remaining ()
bool is_ip_stale ()
bool is_ip_timeout ()
bool is_ip_fail_timeout ()
void refresh_ip ()
bool serve_stale_but_revalidate ()
bool failed ()
void set_failed ()
void set_deleted ()
bool is_deleted () const
bool is_empty () const
void set_empty ()
void set_full (uint64_t folded_md5, int buckets)
void reset ()
uint64_t tag ()
bool match (INK_MD5 &, int, int)
int heap_size ()
int * heap_offset_ptr ()

Data Fields

HostDBApplicationInfo app
 Application specific data.
union {
   IpEndpoint   ip
 IP address / port data.
   int   hostname_offset
 Some hostname thing.
   SRVInfo   srv
data
unsigned int ip_timestamp
unsigned int ip_timeout_interval:31
unsigned int full:1
unsigned int backed:1
unsigned int deleted:1
unsigned int hits:3
unsigned int is_srv:1
unsigned int round_robin:1
unsigned int reverse_dns:1
unsigned int md5_low_low:24
unsigned int md5_low
uint64_t md5_high

Detailed Description

Definition at line 149 of file I_HostDBProcessor.h.


Member Function Documentation

void HostDBInfo::bad (  )  [inline]

Indicate that the HostDBInfo is BAD and should be deleted.

Definition at line 162 of file I_HostDBProcessor.h.

References full.

bool HostDBInfo::failed (  )  [inline]
int * HostDBInfo::heap_offset_ptr (  ) 
int HostDBInfo::heap_size (  ) 

Definition at line 2190 of file HostDB.cc.

References hostname(), HostDBRoundRobin::length, reverse_dns, round_robin, and rr().

char * HostDBInfo::hostname (  ) 
sockaddr const* HostDBInfo::ip (  )  const [inline]

Definition at line 155 of file I_HostDBProcessor.h.

References data.

sockaddr* HostDBInfo::ip (  )  [inline]

Internal IP address data.

This is at least large enough to hold an IPv6 address.

Definition at line 154 of file I_HostDBProcessor.h.

References data.

Referenced by failed(), reset(), and set_failed().

unsigned int HostDBInfo::ip_interval (  )  [inline]
int HostDBInfo::ip_time_remaining (  )  [inline]
bool HostDBInfo::is_deleted (  )  const [inline]

Definition at line 261 of file I_HostDBProcessor.h.

References deleted.

Referenced by probe().

bool HostDBInfo::is_empty (  )  const [inline]

Definition at line 263 of file I_HostDBProcessor.h.

References full.

bool HostDBInfo::is_ip_fail_timeout (  )  [inline]

Definition at line 193 of file I_HostDBProcessor.h.

References hostdb_ip_fail_timeout_interval, and ip_interval().

Referenced by probe().

bool HostDBInfo::is_ip_stale (  )  [inline]

Definition at line 182 of file I_HostDBProcessor.h.

References hostdb_ip_stale_interval, ip_interval(), and ip_timeout_interval.

Referenced by probe(), and ShowHostDB::showOne().

bool HostDBInfo::is_ip_timeout (  )  [inline]
bool HostDBInfo::match ( INK_MD5 md5,
int  ,
int  buckets 
)

Definition at line 2139 of file HostDB.cc.

References fold_md5(), md5_high, md5_low, and md5_low_low.

void HostDBInfo::refresh_ip (  )  [inline]

Definition at line 197 of file I_HostDBProcessor.h.

References hostdb_current_interval, and ip_timestamp.

Referenced by probe().

void HostDBInfo::reset (  )  [inline]
HostDBRoundRobin * HostDBInfo::rr (  ) 
bool HostDBInfo::serve_stale_but_revalidate (  )  [inline]

Definition at line 202 of file I_HostDBProcessor.h.

References Debug, hostdb_serve_stale_but_revalidate, ip_interval(), and ip_timeout_interval.

Referenced by probe().

void HostDBInfo::set_deleted (  )  [inline]

Definition at line 260 of file I_HostDBProcessor.h.

References deleted.

void HostDBInfo::set_empty (  )  [inline]

Definition at line 265 of file I_HostDBProcessor.h.

References full, md5_high, md5_low, and md5_low_low.

void HostDBInfo::set_failed (  )  [inline]

Definition at line 251 of file I_HostDBProcessor.h.

References ats_ip_invalidate(), data, ip(), is_srv, and reverse_dns.

Referenced by HostDBContinuation::lookup_done().

void HostDBInfo::set_full ( uint64_t  folded_md5,
int  buckets 
) [inline]

Definition at line 273 of file I_HostDBProcessor.h.

References full, md5_low, and md5_low_low.

char * HostDBInfo::srvname ( HostDBRoundRobin rr  ) 
uint64_t HostDBInfo::tag (  )  [inline]

Definition at line 297 of file I_HostDBProcessor.h.

References md5_low, and md5_low_low.


Field Documentation

unsigned int HostDBInfo::backed

Definition at line 235 of file I_HostDBProcessor.h.

Referenced by reset().

union { ... } HostDBInfo::data
unsigned int HostDBInfo::deleted

Definition at line 236 of file I_HostDBProcessor.h.

Referenced by is_deleted(), reset(), and set_deleted().

unsigned int HostDBInfo::full
unsigned int HostDBInfo::hits

Definition at line 237 of file I_HostDBProcessor.h.

Referenced by probe(), and reset().

Some hostname thing.

Definition at line 226 of file I_HostDBProcessor.h.

Referenced by HostDBContinuation::lookup_done(), and HostDBCache::rebuild_callout().

unsigned int HostDBInfo::is_srv
unsigned int HostDBInfo::md5_low

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