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

CacheC Class Reference

#include <CacheC.H>

List of all members.

Public Member Functions

 CacheC (CacheIntf::DebugLevel debug=CacheIntf::None) throw (SRPC::failure)
 ~CacheC () throw ()
FV::Epoch FreeVariables (const FP::Tag &pk, CompactFV::List &names, bool &isEmpty) const throw (SRPC::failure)
CacheIntf::LookupRes Lookup (const FP::Tag &pk, const FV::Epoch id, const FP::List &fps, CacheEntry::Index &ci, VestaVal::T &value) const throw (SRPC::failure)
CacheIntf::AddEntryRes AddEntry (const FP::Tag &pk, const char *types, const FV2::List &names, const FP::List &fps, const VestaVal::T &value, const Model::T model, const CacheEntry::Indices &kids, const Text &sourceFunc, CacheEntry::Index &ci) throw (SRPC::failure)
void Checkpoint (const FP::Tag &pkgVersion, Model::T model, const CacheEntry::Indices &cis, bool done) throw (SRPC::failure)
bool RenewLeases (const CacheEntry::Indices &cis) throw (SRPC::failure)

Protected Attributes

MultiSRPCconns
CacheIntf::DebugLevel debug
FP::Tag server_instance

Private Member Functions

 CacheC (const CacheC &)
void init_server_instance () throw (SRPC::failure)
void recv_server_instance_check (SRPC *srpc, const char *func_name) const throw (SRPC::failure)


Constructor & Destructor Documentation

CacheC::CacheC CacheIntf::DebugLevel  debug = CacheIntf::None  )  throw (SRPC::failure)
 

Definition at line 59 of file CacheC.C.

References Config_CacheSection, NEW_CONSTR, and ReadConfig::TextVal().

CacheC::~CacheC  )  throw ()
 

Definition at line 70 of file CacheC.C.

References conns.

CacheC::CacheC const CacheC  )  [private]
 


Member Function Documentation

CacheIntf::AddEntryRes CacheC::AddEntry const FP::Tag pk,
const char *  types,
const FV2::List names,
const FP::List fps,
const VestaVal::T value,
const Model::T  model,
const CacheEntry::Indices kids,
const Text sourceFunc,
CacheEntry::Index ci
throw (SRPC::failure)
 

Definition at line 295 of file CacheC.C.

References CacheIntf::AddEntryOp, CacheIntf::AddEntryProc, CacheIntf::AddEntryResName(), CacheIntf::EntryAdded, g_debug_call_count, ParCacheC::Locate(), Debug::Lock(), Model::Send(), SRPC::start_call(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::Version.

Referenced by ApplicationFromCache(), ModelFromCache(), NormalModelFromCache(), and RunToolFromCache().

void CacheC::Checkpoint const FP::Tag pkgVersion,
Model::T  model,
const CacheEntry::Indices cis,
bool  done
throw (SRPC::failure)
 

Definition at line 372 of file CacheC.C.

References BoolName, CacheIntf::CheckpointProc, g_debug_call_count, ParCacheC::Locate(), Debug::Lock(), CacheIntf::LogFlush, Model::Send(), SRPC::start_call(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::Version.

Referenced by Checkpoint(), and Interpret().

FV::Epoch CacheC::FreeVariables const FP::Tag pk,
CompactFV::List names,
bool &  isEmpty
const throw (SRPC::failure)
 

Definition at line 154 of file CacheC.C.

References BoolName, CacheIntf::FreeVarsProc, g_debug_call_count, ParCacheC::Locate(), Debug::Lock(), CacheIntf::OtherOps, SRPC::start_call(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::Version.

Referenced by ApplicationFromCache(), ModelFromCache(), NormalModelFromCache(), and RunToolFromCache().

void CacheC::init_server_instance  )  throw (SRPC::failure) [private]
 

Definition at line 76 of file CacheC.C.

References g_debug_call_count, CacheIntf::GetCacheInstanceProc, ParCacheC::Locate(), Debug::Lock(), CacheIntf::OtherOps, SRPC::send_end(), SRPC::start_call(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::Version.

CacheIntf::LookupRes CacheC::Lookup const FP::Tag pk,
const FV::Epoch  id,
const FP::List fps,
CacheEntry::Index ci,
VestaVal::T value
const throw (SRPC::failure)
 

Definition at line 223 of file CacheC.C.

References g_debug_call_count, CacheIntf::Hit, ParCacheC::Locate(), Debug::Lock(), CacheIntf::LookupProc, CacheIntf::LookupResName(), CacheIntf::OtherOps, SRPC::start_call(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::Version.

Referenced by ApplicationFromCache(), ModelFromCache(), NormalModelFromCache(), and RunToolFromCache().

void CacheC::recv_server_instance_check SRPC srpc,
const char *  func_name
const throw (SRPC::failure) [private]
 

Definition at line 126 of file CacheC.C.

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

bool CacheC::RenewLeases const CacheEntry::Indices cis  )  throw (SRPC::failure)
 

Definition at line 432 of file CacheC.C.

References g_debug_call_count, CacheIntf::LeaseExp, ParCacheC::Locate(), Debug::Lock(), CacheIntf::RenewLeasesProc, SRPC::start_call(), Debug::Timestamp(), Debug::Unlock(), and CacheIntf::Version.


Member Data Documentation

MultiSRPC* CacheC::conns [protected]
 

Definition at line 150 of file CacheC.H.

Referenced by ~CacheC().

CacheIntf::DebugLevel CacheC::debug [protected]
 

Definition at line 153 of file CacheC.H.

FP::Tag CacheC::server_instance [protected]
 

Definition at line 157 of file CacheC.H.


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