Public Member Functions | Static Public Member Functions | Data Fields

CacheHostTable Class Reference

#include <P_CacheHosting.h>

Collaboration diagram for CacheHostTable:
Collaboration graph
[legend]

Public Member Functions

 CacheHostTable (Cache *c, CacheType typ)
 ~CacheHostTable ()
int BuildTable (const char *config_file_path)
int BuildTableFromString (const char *config_file_path, char *str)
void Match (char const *rdata, int rlen, CacheHostResult *result)
void Print ()
int getEntryCount () const
CacheHostMatchergetHostMatcher () const
void register_config_callback (CacheHostTable **p)

Static Public Member Functions

static int config_callback (const char *, RecDataT, RecData, void *)

Data Fields

CacheType type
Cachecache
int m_numEntries
CacheHostRecord gen_host_rec

Detailed Description

Definition at line 101 of file P_CacheHosting.h.


Constructor & Destructor Documentation

CacheHostTable::CacheHostTable ( Cache c,
CacheType  typ 
)
CacheHostTable::~CacheHostTable (  ) 

Definition at line 208 of file CacheHosting.cc.


Member Function Documentation

int CacheHostTable::BuildTable ( const char *  config_file_path  ) 
int CacheHostTable::BuildTableFromString ( const char *  config_file_path,
char *  str 
)
int CacheHostTable::config_callback ( const char *  ,
RecDataT  ,
RecData  ,
void *  cookie 
) [static]

Definition at line 243 of file CacheHosting.cc.

References eventProcessor, and EventProcessor::schedule_imm().

Referenced by register_config_callback().

int CacheHostTable::getEntryCount (  )  const [inline]

Definition at line 113 of file P_CacheHosting.h.

References m_numEntries.

CacheHostMatcher* CacheHostTable::getHostMatcher (  )  const [inline]

Definition at line 114 of file P_CacheHosting.h.

Referenced by rebuild_host_table().

void CacheHostTable::Match ( char const *  rdata,
int  rlen,
CacheHostResult result 
)

Definition at line 236 of file CacheHosting.cc.

References CacheHostMatcher::Match().

Referenced by Cache::key_to_vol(), and CacheVC::scanVol().

void CacheHostTable::Print (  ) 

Definition at line 221 of file CacheHosting.cc.

References CacheHostMatcher::Print().

Referenced by BuildTableFromString().

void CacheHostTable::register_config_callback ( CacheHostTable **  p  )  [inline]

Definition at line 118 of file P_CacheHosting.h.

References config_callback(), and REC_RegisterConfigUpdateFunc.

Referenced by Cache::open_done().


Field Documentation

Definition at line 124 of file P_CacheHosting.h.

Referenced by CacheHostTable().

Definition at line 123 of file P_CacheHosting.h.

Referenced by BuildTable(), BuildTableFromString(), and CacheHostTable().


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