#include <P_CacheHosting.h>
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 |
CacheHostMatcher * | getHostMatcher () const |
void | register_config_callback (CacheHostTable **p) |
Static Public Member Functions | |
static int | config_callback (const char *, RecDataT, RecData, void *) |
Data Fields | |
CacheType | type |
Cache * | cache |
int | m_numEntries |
CacheHostRecord | gen_host_rec |
Definition at line 101 of file P_CacheHosting.h.
Definition at line 190 of file CacheHosting.cc.
References BuildTable(), cache, ink_assert, ink_release_assert, m_numEntries, RecConfigReadConfigPath(), and type.
CacheHostTable::~CacheHostTable | ( | ) |
Definition at line 208 of file CacheHosting.cc.
int CacheHostTable::BuildTable | ( | const char * | config_file_path | ) |
Definition at line 409 of file CacheHosting.cc.
References ats_free(), BuildTableFromString(), gen_host_rec, CacheHostRecord::Init(), readIntoBuffer(), type, and Warning.
Referenced by CacheHostTable().
int CacheHostTable::BuildTableFromString | ( | const char * | config_file_path, | |
char * | str | |||
) |
Definition at line 259 of file CacheHosting.cc.
References CacheHostMatcher::AllocateSpace(), ALLOW_EMPTY_TOKS, ats_free(), ats_malloc(), matcher_line::dest_entry, gen_host_rec, CacheHostRecord::Init(), Tokenizer::Initialize(), ink_assert, is_debug_tag_set, Tokenizer::iterFirst(), Tokenizer::iterNext(), matcher_line::line, matcher_line::line_num, MATCH_DOMAIN, MATCH_HOST, MATCH_NONE, MATCHER_MAX_TOKENS, CacheHostMatcher::NewEntry(), matcher_line::next, matcher_line::num_el, parseConfigLine(), Print(), REC_SIGNAL_CONFIG_ERROR, RecSignalWarning(), SHARE_TOKS, matcher_line::type, type, and Warning.
Referenced by BuildTable().
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().
Definition at line 124 of file P_CacheHosting.h.
Referenced by CacheHostTable().
Definition at line 126 of file P_CacheHosting.h.
Referenced by BuildTable(), BuildTableFromString(), Cache::key_to_vol(), CacheProcessor::mark_storage_offline(), Cache::open_done(), rebuild_host_table(), and CacheVC::scanVol().
Definition at line 125 of file P_CacheHosting.h.
Referenced by CacheHostTable(), getEntryCount(), Cache::key_to_vol(), and rebuild_host_table().
Definition at line 123 of file P_CacheHosting.h.
Referenced by BuildTable(), BuildTableFromString(), and CacheHostTable().