Public Member Functions | Data Fields

Cache Struct Reference

#include <P_CacheInternal.h>

Collaboration diagram for Cache:
Collaboration graph
[legend]

Public Member Functions

int open (bool reconfigure, bool fix)
int close ()
Actionlookup (Continuation *cont, CacheKey *key, CacheFragType type, char const *hostname, int host_len)
inkcoreapi Actionopen_read (Continuation *cont, CacheKey *key, CacheFragType type, char *hostname, int len)
inkcoreapi Actionopen_write (Continuation *cont, CacheKey *key, CacheFragType frag_type, int options=0, time_t pin_in_cache=(time_t) 0, char *hostname=0, int host_len=0)
inkcoreapi Actionremove (Continuation *cont, CacheKey *key, CacheFragType type=CACHE_FRAG_TYPE_HTTP, bool user_agents=true, bool link=false, char *hostname=0, int host_len=0)
Actionscan (Continuation *cont, char *hostname=0, int host_len=0, int KB_per_second=2500)
Actionlink (Continuation *cont, CacheKey *from, CacheKey *to, CacheFragType type, char *hostname, int host_len)
Actionderef (Continuation *cont, CacheKey *key, CacheFragType type, char *hostname, int host_len)
void vol_initialized (bool result)
int open_done ()
Volkey_to_vol (CacheKey *key, char const *hostname, int host_len)
 Cache ()

Data Fields

volatile int cache_read_done
volatile int total_good_nvol
volatile int total_nvol
volatile int ready
int64_t cache_size
CacheHostTablehosttable
volatile int total_initialized_vol
CacheType scheme

Detailed Description

Definition at line 1013 of file P_CacheInternal.h.


Constructor & Destructor Documentation

Cache::Cache (  )  [inline]

Definition at line 1064 of file P_CacheInternal.h.


Member Function Documentation

int Cache::close (  ) 

Definition at line 2341 of file Cache.cc.

Action * Cache::deref ( Continuation cont,
CacheKey key,
CacheFragType  type,
char *  hostname,
int  host_len 
)
Vol * Cache::key_to_vol ( CacheKey key,
char const *  hostname,
int  host_len 
)
Action * Cache::link ( Continuation cont,
CacheKey from,
CacheKey to,
CacheFragType  type,
char *  hostname,
int  host_len 
)
Action * Cache::lookup ( Continuation cont,
CacheKey key,
CacheFragType  type,
char const *  hostname,
int  host_len 
)
int Cache::open ( bool  reconfigure,
bool  fix 
)
int Cache::open_done (  ) 
Action * Cache::open_read ( Continuation cont,
CacheKey key,
CacheFragType  type,
char *  hostname,
int  len 
)
Action * Cache::open_write ( Continuation cont,
CacheKey key,
CacheFragType  frag_type,
int  options = 0,
time_t  pin_in_cache = (time_t) 0,
char *  hostname = 0,
int  host_len = 0 
)
Action * Cache::remove ( Continuation cont,
CacheKey key,
CacheFragType  type = CACHE_FRAG_TYPE_HTTP,
bool  user_agents = true,
bool  link = false,
char *  hostname = 0,
int  host_len = 0 
)
Action * Cache::scan ( Continuation cont,
char *  hostname = 0,
int  host_len = 0,
int  KB_per_second = 2500 
)
void Cache::vol_initialized ( bool  result  ) 

Definition at line 2138 of file Cache.cc.

References open_done(), total_good_nvol, total_initialized_vol, and total_nvol.

Referenced by Vol::dir_init_done().


Field Documentation

volatile int Cache::cache_read_done

Definition at line 1015 of file P_CacheInternal.h.

Referenced by Vol::dir_init_done(), and open().

Definition at line 1019 of file P_CacheInternal.h.

Referenced by CacheProcessor::cacheInitialized(), and open().

volatile int Cache::ready

Definition at line 1018 of file P_CacheInternal.h.

Referenced by CacheProcessor::cacheInitialized(), and open_done().

Definition at line 1022 of file P_CacheInternal.h.

Referenced by CacheProcessor::diskInitialized(), open(), and open_done().

volatile int Cache::total_good_nvol

Definition at line 1016 of file P_CacheInternal.h.

Referenced by open(), open_done(), and vol_initialized().

Definition at line 1021 of file P_CacheInternal.h.

Referenced by open(), and vol_initialized().

volatile int Cache::total_nvol

Definition at line 1017 of file P_CacheInternal.h.

Referenced by open(), and vol_initialized().


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