Inherits ShowCont.
Definition at line 31 of file CachePages.cc.
enum ShowCache::scan_type |
Definition at line 32 of file CachePages.cc.
ShowCache::ShowCache | ( | Continuation * | c, | |
HTTPHdr * | h | |||
) | [inline] |
Definition at line 68 of file CachePages.cc.
References Debug, ink_strlcpy(), linecount, URL::query_get(), SET_HANDLER, show_cache_urlstrs, showMain(), unescapifyStr(), HTTPHdr::url_get(), and urlstrs_index.
ShowCache::~ShowCache | ( | ) | [inline] |
Definition at line 150 of file CachePages.cc.
References HdrHeapSDKHandle::destroy(), show_cache_urlstrs, and url.
int ShowCache::delete_regex | ( | int | event, | |
Event * | e | |||
) |
Definition at line 526 of file CachePages.cc.
References ShowCont::begin(), cacheProcessor, CHECK_SHOW, handleCacheScanCallback(), CacheProcessor::scan(), scan_flag, SET_HANDLER, and ShowCont::show().
Referenced by register_ShowCache().
int ShowCache::delete_regex_form | ( | int | event, | |
Event * | e | |||
) |
Definition at line 251 of file CachePages.cc.
References ShowCont::begin(), CHECK_SHOW, ShowCont::complete(), and ShowCont::show().
Referenced by register_ShowCache().
int ShowCache::delete_url | ( | int | event, | |
Event * | e | |||
) |
Definition at line 438 of file CachePages.cc.
References ShowCont::begin(), CACHE_FRAG_TYPE_HTTP, cacheProcessor, CHECK_SHOW, ShowCont::complete(), URL::create(), getClusterCacheLocal(), handleCacheDeleteComplete(), URL::host_get(), URL::parse(), CacheProcessor::remove(), SET_HANDLER, ShowCont::show(), show_cache_urlstrs, url, and urlstrs_index.
Referenced by handleCacheDeleteComplete(), and register_ShowCache().
int ShowCache::delete_url_form | ( | int | event, | |
Event * | e | |||
) |
Definition at line 226 of file CachePages.cc.
References ShowCont::begin(), CHECK_SHOW, ShowCont::complete(), and ShowCont::show().
Referenced by register_ShowCache().
int ShowCache::handleCacheDeleteComplete | ( | int | event, | |
Event * | e | |||
) |
Definition at line 469 of file CachePages.cc.
References CACHE_EVENT_REMOVE, CHECK_SHOW, delete_url(), and ShowCont::show().
Referenced by delete_url().
int ShowCache::handleCacheEvent | ( | int | event, | |
Event * | e | |||
) |
Definition at line 276 of file CachePages.cc.
References MIOBuffer::alloc_reader(), buffer, buffer_reader, CACHE_EVENT_OPEN_READ, CACHE_EVENT_OPEN_READ_FAILED, cache_vc, Vol::cache_vol, CHECK_SHOW, ShowCont::complete(), IOBufferReader::consume(), content_length, CacheHTTPInfoVector::count(), cvio, MIOBuffer::dealloc_reader(), CacheVC::do_io_close(), CacheVC::do_io_read(), Doc::doc_type, CacheVC::first_buf, Doc::first_key, free_MIOBuffer(), CacheHTTPInfoVector::get(), CacheVC::get_object_size(), Doc::hlen, ink_ctime_r(), Doc::key, new_empty_MIOBuffer, Vol::path, HTTPHdr::print(), IOBufferReader::read_avail(), ShowCont::show(), show_cache_urlstrs, Doc::sync_serial, ats::CryptoHash::toHexStr(), VC_EVENT_EOS, VC_EVENT_READ_COMPLETE, VC_EVENT_READ_READY, CacheVC::vector, CacheVC::vol, CacheVol::vol_number, and Doc::write_serial.
Referenced by lookup_url().
int ShowCache::handleCacheScanCallback | ( | int | event, | |
Event * | e | |||
) |
Definition at line 553 of file CachePages.cc.
References CACHE_EVENT_SCAN, CACHE_EVENT_SCAN_DONE, CACHE_EVENT_SCAN_FAILED, CACHE_EVENT_SCAN_OBJECT, cache_vc, CHECK_SHOW, ShowCont::complete(), HTTPInfo::copy(), Debug, linecount, memcpy, HTTPInfo::request_get(), HTTPInfo::response_get(), scan_flag, scan_type_delete, scan_type_invalidate, scan_type_lookup, ShowCont::show(), and show_cache_urlstrs.
Referenced by delete_regex(), invalidate_regex(), and lookup_regex().
int ShowCache::invalidate_regex | ( | int | event, | |
Event * | e | |||
) |
Definition at line 539 of file CachePages.cc.
References ShowCont::begin(), cacheProcessor, CHECK_SHOW, handleCacheScanCallback(), CacheProcessor::scan(), scan_flag, SET_HANDLER, and ShowCont::show().
Referenced by register_ShowCache().
int ShowCache::invalidate_regex_form | ( | int | event, | |
Event * | e | |||
) |
Definition at line 263 of file CachePages.cc.
References ShowCont::begin(), CHECK_SHOW, ShowCont::complete(), and ShowCont::show().
Referenced by register_ShowCache().
int ShowCache::lookup_regex | ( | int | event, | |
Event * | e | |||
) |
Definition at line 483 of file CachePages.cc.
References ShowCont::begin(), cacheProcessor, CHECK_SHOW, handleCacheScanCallback(), CacheProcessor::scan(), scan_flag, SET_HANDLER, and ShowCont::show().
Referenced by register_ShowCache().
int ShowCache::lookup_regex_form | ( | int | event, | |
Event * | e | |||
) |
Definition at line 238 of file CachePages.cc.
References ShowCont::begin(), CHECK_SHOW, ShowCont::complete(), and ShowCont::show().
Referenced by register_ShowCache().
int ShowCache::lookup_url | ( | int | event, | |
Event * | e | |||
) |
Definition at line 410 of file CachePages.cc.
References ACTION_IO_ERROR, ACTION_RESULT_DONE, ShowCont::begin(), CACHE_EVENT_OPEN_READ_FAILED, CACHE_FRAG_TYPE_HTTP, cacheProcessor, CHECK_SHOW, URL::create(), getClusterCacheLocal(), handleCacheEvent(), Continuation::handleEvent(), URL::hash_get(), URL::host_get(), CacheProcessor::open_read(), URL::parse(), SET_HANDLER, show_cache_urlstrs, and url.
Referenced by register_ShowCache().
int ShowCache::lookup_url_form | ( | int | event, | |
Event * | e | |||
) |
Definition at line 215 of file CachePages.cc.
References ShowCont::begin(), CHECK_SHOW, ShowCont::complete(), and ShowCont::show().
Referenced by register_ShowCache().
int ShowCache::showMain | ( | int | event, | |
Event * | e | |||
) |
Definition at line 204 of file CachePages.cc.
References ShowCont::begin(), CHECK_SHOW, ShowCont::complete(), and ShowCont::show().
Referenced by ShowCache().
Definition at line 47 of file CachePages.cc.
Referenced by handleCacheEvent().
Definition at line 48 of file CachePages.cc.
Referenced by handleCacheEvent().
Definition at line 46 of file CachePages.cc.
Referenced by handleCacheEvent(), and handleCacheScanCallback().
int64_t ShowCache::content_length |
Definition at line 49 of file CachePages.cc.
Referenced by handleCacheEvent().
Definition at line 50 of file CachePages.cc.
Referenced by handleCacheEvent().
Definition at line 42 of file CachePages.cc.
Referenced by handleCacheScanCallback(), and ShowCache().
Definition at line 40 of file CachePages.cc.
Referenced by delete_regex(), handleCacheScanCallback(), invalidate_regex(), and lookup_regex().
Definition at line 39 of file CachePages.cc.
Definition at line 45 of file CachePages.cc.
char(* ShowCache::show_cache_urlstrs)[500] |
Definition at line 43 of file CachePages.cc.
Referenced by delete_url(), handleCacheEvent(), handleCacheScanCallback(), lookup_url(), ShowCache(), and ~ShowCache().
Definition at line 44 of file CachePages.cc.
Referenced by delete_url(), lookup_url(), and ~ShowCache().
Definition at line 41 of file CachePages.cc.
Referenced by delete_url(), and ShowCache().
Definition at line 38 of file CachePages.cc.