Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ExpCache Class Reference

#include <ExpCache.H>

List of all members.

Public Member Functions

 ExpCache (CacheS *cs, int maxRunning, int maxBlocked, LimService_FailureCallback failureCallback=NULL, const Text &hostName=Text("")) throw ()
void Run () throw (SRPC::failure)

Private Member Functions

bool check_server_instance (SRPC *srpc, const FP::Tag &server_instance, const char *func_name) const throw (SRPC::failure)
void AddEntry (SRPC *srpc) throw (SRPC::failure)
void FreeVars (SRPC *srpc) throw (SRPC::failure)
void Lookup (SRPC *srpc) throw (SRPC::failure)
void Checkpoint (SRPC *srpc) throw (SRPC::failure)
void RenewLeases (SRPC *srpc) throw (SRPC::failure)
void WeederRecovering (SRPC *srpc) throw (SRPC::failure)
void StartMark (SRPC *srpc) throw (SRPC::failure)
void SetHitFilter (SRPC *srpc) throw (SRPC::failure)
void GetLeases (SRPC *srpc) throw (SRPC::failure)
void ResumeLeaseExp (SRPC *srpc) throw (SRPC::failure)
void EndMark (SRPC *srpc) throw (SRPC::failure)
void CommitChkpt (SRPC *srpc) throw (SRPC::failure)
void FlushAll (SRPC *srpc) throw (SRPC::failure)
void GetCacheId (SRPC *srpc) throw (SRPC::failure)
void GetCacheState (SRPC *srpc) throw (SRPC::failure)
void GetCacheInstance (SRPC *srpc) throw (SRPC::failure)
 ExpCache (const ExpCache &)

Private Attributes

CacheIntf::DebugLevel debug
CacheScs
LimServicels

Friends

void ExpCache_NewCall (SRPC *, int, void *) throw (SRPC::failure)

Classes

class  CallArg


Constructor & Destructor Documentation

ExpCache::ExpCache CacheS cs,
int  maxRunning,
int  maxBlocked,
LimService_FailureCallback  failureCallback = NULL,
const Text hostName = Text("")
throw ()
 

Definition at line 92 of file ExpCache.C.

References Config_Port, ExpCache_NewCall(), and NEW_CONSTR.

ExpCache::ExpCache const ExpCache  )  [private]
 


Member Function Documentation

void ExpCache::AddEntry SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 262 of file ExpCache.C.

References CacheIntf::AddEntryOp, CacheIntf::AddEntryResName(), CacheIntf::EntryAdded, Debug::Lock(), NEW_CONSTR, NEW_PTRFREE_CONSTR, VestaVal::T::Print(), FP::List::Print(), FV::List::Print(), Model::Recv(), Debug::Timestamp(), and Debug::Unlock().

Referenced by ExpCache_NewCall().

bool ExpCache::check_server_instance SRPC srpc,
const FP::Tag server_instance,
const char *  func_name
const throw (SRPC::failure) [private]
 

Definition at line 114 of file ExpCache.C.

References Debug::Lock(), CacheIntf::OtherOps, Debug::Timestamp(), and Debug::Unlock().

void ExpCache::Checkpoint SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 326 of file ExpCache.C.

References BoolName, Debug::Lock(), CacheIntf::LogFlush, NEW_CONSTR, CacheEntry::Indices::Print(), Model::Recv(), Debug::Timestamp(), and Debug::Unlock().

Referenced by ExpCache_NewCall().

void ExpCache::CommitChkpt SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 685 of file ExpCache.C.

References Debug::Lock(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::WeederOps.

Referenced by ExpCache_NewCall().

void ExpCache::EndMark SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 638 of file ExpCache.C.

References Debug::Lock(), PKPrefix::List::Print(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::WeederOps.

Referenced by ExpCache_NewCall().

void ExpCache::FlushAll SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 732 of file ExpCache.C.

References Debug::Lock(), CacheIntf::MPKFileFlush, Debug::Timestamp(), and Debug::Unlock().

Referenced by ExpCache_NewCall().

void ExpCache::FreeVars SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 147 of file ExpCache.C.

References SRPC::internal_trouble, Debug::Lock(), CacheIntf::OtherOps, VPKFile::SendAllNames(), Debug::Timestamp(), and Debug::Unlock().

Referenced by ExpCache_NewCall().

void ExpCache::GetCacheId SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 760 of file ExpCache.C.

References Debug::Lock(), CacheIntf::OtherOps, Debug::Timestamp(), and Debug::Unlock().

Referenced by ExpCache_NewCall().

void ExpCache::GetCacheInstance SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 791 of file ExpCache.C.

References Debug::Lock(), CacheIntf::OtherOps, FP::Tag::Send(), Debug::Timestamp(), and Debug::Unlock().

Referenced by ExpCache_NewCall().

void ExpCache::GetCacheState SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 821 of file ExpCache.C.

References Debug::Lock(), CacheIntf::OtherOps, CacheState::Print(), CacheState::Send(), Debug::Timestamp(), and Debug::Unlock().

Referenced by ExpCache_NewCall().

void ExpCache::GetLeases SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 554 of file ExpCache.C.

References Debug::Lock(), BitVector::Send(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::WeederOps.

Referenced by ExpCache_NewCall().

void ExpCache::Lookup SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 202 of file ExpCache.C.

References CacheIntf::Hit, Debug::Lock(), CacheIntf::LookupResName(), CacheIntf::OtherOps, VestaVal::T::Print(), FP::List::Print(), VestaVal::T::Send(), Debug::Timestamp(), and Debug::Unlock().

Referenced by ExpCache_NewCall().

void ExpCache::RenewLeases SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 375 of file ExpCache.C.

References BoolName, CacheIntf::LeaseExp, Debug::Lock(), NEW_CONSTR, Debug::Timestamp(), and Debug::Unlock().

Referenced by ExpCache_NewCall().

void ExpCache::ResumeLeaseExp SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 597 of file ExpCache.C.

References Debug::Lock(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::WeederOps.

Referenced by ExpCache_NewCall().

void ExpCache::Run  )  throw (SRPC::failure)
 

Definition at line 109 of file ExpCache.C.

References ls, and LimService::Run().

Referenced by Server().

void ExpCache::SetHitFilter SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 511 of file ExpCache.C.

References Debug::Lock(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::WeederOps.

Referenced by ExpCache_NewCall().

void ExpCache::StartMark SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 465 of file ExpCache.C.

References Debug::Lock(), BitVector::Send(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::WeederOps.

Referenced by ExpCache_NewCall().

void ExpCache::WeederRecovering SRPC srpc  )  throw (SRPC::failure) [private]
 

Definition at line 420 of file ExpCache.C.

References BoolName, Debug::Lock(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::WeederOps.

Referenced by ExpCache_NewCall().


Friends And Related Function Documentation

void ExpCache_NewCall SRPC srpc,
int  procId,
void *  arg
throw (SRPC::failure) [friend]
 

Definition at line 55 of file ExpCache.C.


Member Data Documentation

CacheS* ExpCache::cs [private]
 

Definition at line 91 of file ExpCache.H.

CacheIntf::DebugLevel ExpCache::debug [private]
 

Definition at line 88 of file ExpCache.H.

LimService* ExpCache::ls [private]
 

Definition at line 92 of file ExpCache.H.

Referenced by Run().


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:09 2006 for Vesta by  doxygen 1.4.2