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

ShortIdImpl.H File Reference

#include "ShortIdBlock.H"
#include <fstream>

Go to the source code of this file.

Functions

void AcquireShortIdBlock (ShortIdBlock &bk, bool leafflag, bool local=false) throw ()
bool RenewShortIdBlock (ShortIdBlock &block) throw ()
void ReleaseShortIdBlock (ShortIdBlock &block, bool local=false) throw ()
int DeleteAllShortIdsBut (ShortIdsFile sidfile, time_t lease) throw ()
void ShortIdBlockCheckpoint (std::fstream &ckpt) throw ()
void ShortIdServerInit ()
void ShortIdServerInit2 ()
void ShortIdServerExport (char *serverName=0)


Function Documentation

void AcquireShortIdBlock ShortIdBlock bk,
bool  leafflag,
bool  local = false
throw ()
 

Definition at line 96 of file ShortIdImpl.C.

References ReadersWritersLock::acquireWrite(), closedir(), VestaLog::commit(), Table< K, V >::Default::Get(), ShortIdBlock::leafFlag, LEASE_PERIOD, ShortIdBlockInfo::leaseExpires, ShortIdBlock::leaseNonexpiring, Basics::mutex::lock(), NEW, NullShortId, opendir(), PathnameSep, VestaLog::put(), Table< K, V >::Default::Put(), randDat, ReadersWritersLock::releaseWrite(), RWLOCK_LOCKED_REASON, ShortIdBlock::shortIdToName(), ShortIdBlock::size, StableLock, VestaLog::start(), Basics::mutex::unlock(), and VRLog.

Referenced by ShortIdBlock::acquire(), and ShortIdReceptionist().

int DeleteAllShortIdsBut ShortIdsFile  sidfile,
time_t  lease
throw ()
 

Definition at line 578 of file ShortIdImpl.C.

References Text::cchars(), DBG_ALWAYS, Repos::dprintf(), and SourceOrDerived::open().

Referenced by DoDeletions().

void ReleaseShortIdBlock ShortIdBlock block,
bool  local = false
throw ()
 

Definition at line 263 of file ShortIdImpl.C.

References ReadersWritersLock::acquireWrite(), Basics::mutex::lock(), ReadersWritersLock::releaseWrite(), RWLOCK_LOCKED_REASON, StableLock, and Basics::mutex::unlock().

Referenced by ShortIdBlock::release(), and ShortIdReceptionist().

bool RenewShortIdBlock ShortIdBlock block  )  throw ()
 

Definition at line 204 of file ShortIdImpl.C.

References ReadersWritersLock::acquireWrite(), VestaLog::commit(), Table< K, V >::Default::Delete(), LEASE_PERIOD, ShortIdBlockInfo::leaseExpires, Basics::mutex::lock(), VestaLog::put(), Table< K, V >::Default::Put(), ReadersWritersLock::releaseWrite(), RWLOCK_LOCKED_REASON, StableLock, VestaLog::start(), Basics::mutex::unlock(), and VRLog.

Referenced by ShortIdReceptionist().

void ShortIdBlockCheckpoint std::fstream &  ckpt  )  throw ()
 

void ShortIdServerExport char *  serverName = 0  ) 
 

Definition at line 162 of file ShortIdServer.C.

References Text::cchars(), DBG_ALWAYS, DEF_MAX_BLOCKED, DEF_MAX_RUNNING, Repos::dprintf(), LimService::Forked_Run(), VestaConfig::get(), VestaConfig::get_int(), VestaConfig::get_Text(), VestaConfig::failure::msg, ShortIdFailure(), ShortIdReceptionist(), STACK_SIZE, and ShortIdSRPC::version.

Referenced by main().

void ShortIdServerInit  ) 
 

Definition at line 603 of file ShortIdImpl.C.

References DBG_ALWAYS, Repos::dprintf(), VestaConfig::get(), randDat, randState, and RegisterRecoveryCallback().

Referenced by main().

void ShortIdServerInit2  ) 
 

Definition at line 633 of file ShortIdImpl.C.

References Basics::thread::fork(), and LandlordThread().

Referenced by main().


Generated on Mon May 8 00:49:04 2006 for Vesta by  doxygen 1.4.2