Data Structures | Public Types | Public Member Functions | Data Fields

ClusterVConnectionCache Class Reference

Collaboration diagram for ClusterVConnectionCache:
Collaboration graph
[legend]

Data Structures

struct  Entry

Public Types

enum  { MAX_TABLE_ENTRIES = 256, SCAN_INTERVAL = 10 }

Public Member Functions

 ClusterVConnectionCache ()
void init ()
int MD5ToIndex (INK_MD5 *p)
int insert (INK_MD5 *, ClusterVConnection *)
ClusterVConnectionlookup (INK_MD5 *)

Data Fields

Queue< Entryhash_table [MAX_TABLE_ENTRIES]
Ptr< ProxyMutexhash_lock [MAX_TABLE_ENTRIES]
Eventhash_event [MAX_TABLE_ENTRIES]

Detailed Description

Definition at line 165 of file ClusterCache.cc.


Member Enumeration Documentation

anonymous enum
Enumerator:
MAX_TABLE_ENTRIES 
SCAN_INTERVAL 

Definition at line 193 of file ClusterCache.cc.


Constructor & Destructor Documentation

ClusterVConnectionCache::ClusterVConnectionCache (  )  [inline]

Definition at line 168 of file ClusterCache.cc.

References hash_event.


Member Function Documentation

void ClusterVConnectionCache::init (  ) 
int ClusterVConnectionCache::insert ( INK_MD5 key,
ClusterVConnection vc 
)
ClusterVConnection * ClusterVConnectionCache::lookup ( INK_MD5 key  ) 
int ClusterVConnectionCache::MD5ToIndex ( INK_MD5 p  )  [inline]

Definition at line 244 of file ClusterCache.cc.

References ats::CryptoHash::fold(), and MAX_TABLE_ENTRIES.

Referenced by insert(), and lookup().


Field Documentation

Definition at line 199 of file ClusterCache.cc.

Referenced by ClusterVConnectionCache(), and init().

Definition at line 198 of file ClusterCache.cc.

Referenced by ClusterVConnectionCacheEvent::eventHandler(), init(), insert(), and lookup().

Definition at line 197 of file ClusterCache.cc.

Referenced by ClusterVConnectionCacheEvent::eventHandler(), insert(), and lookup().


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