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

ShortIdBlock Class Reference

#include <ShortIdBlock.H>

List of all members.

Public Types

enum  { size = 256 }
enum  { leaseNonexpiring = 0x7fffffff }
enum  { leafFlag = 0x80000000, dirFlag = 0x40000000 }

Public Member Functions

ShortId assignNextAvail () throw ()
bool assigned (ShortId s) const throw ()
void set (ShortId s) throw ()
bool leaf () throw ()
void init (ShortId st) throw ()

Static Public Member Functions

static char * shortIdToName (ShortId sid, const char *prepend="") throw ()
static ShortIdBlockacquire (bool leafflag=false) throw (SRPC::failure)
static bool renew (ShortIdBlock *block) throw (SRPC::failure)
static void release (ShortIdBlock *block) throw (SRPC::failure)
static int keepDerived (ShortIdsFile ds, time_t dt, bool force) throw (SRPC::failure)
static void checkpoint () throw (SRPC::failure)
static void getWeedingState (ShortIdsFile &ds, time_t &dt, ShortIdsFile &ss, time_t &st, bool &sourceWeedInProgress, bool &deletionsInProgress, bool &deletionsDone, bool &checkpointInProgress) throw (SRPC::failure)

Public Attributes

Bit8 bits [size/8]
ShortId start
time_t leaseExpires
ShortId next


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
size 

Definition at line 41 of file ShortIdBlock.H.

anonymous enum
 

Enumeration values:
leaseNonexpiring 

Definition at line 45 of file ShortIdBlock.H.

anonymous enum
 

Enumeration values:
leafFlag 
dirFlag 

Definition at line 51 of file ShortIdBlock.H.


Member Function Documentation

ShortIdBlock * ShortIdBlock::acquire bool  leafflag = false  )  throw (SRPC::failure) [static]
 

Definition at line 34 of file ShortIdBlockBogusRPC.C.

References AcquireShortIdBlock(), and NEW.

Referenced by ShortIdStock::stockboy().

bool ShortIdBlock::assigned ShortId  s  )  const throw () [inline]
 

Definition at line 55 of file ShortIdBlock.H.

References bits, and start.

ShortId ShortIdBlock::assignNextAvail  )  throw ()
 

Definition at line 57 of file ShortIdBlock.C.

References NullShortId.

Referenced by ShortIdStock::newShortId().

void ShortIdBlock::checkpoint  )  throw (SRPC::failure) [static]
 

Definition at line 65 of file ShortIdBlockBogusRPC.C.

References Checkpoint().

Referenced by SourceOrDerived::checkpoint().

void ShortIdBlock::getWeedingState ShortIdsFile ds,
time_t &  dt,
ShortIdsFile ss,
time_t &  st,
bool &  sourceWeedInProgress,
bool &  deletionsInProgress,
bool &  deletionsDone,
bool &  checkpointInProgress
throw (SRPC::failure) [static]
 

Definition at line 72 of file ShortIdBlockBogusRPC.C.

References GetWeedingState().

Referenced by SourceOrDerived::getWeedingState().

void ShortIdBlock::init ShortId  st  )  throw () [inline]
 

Definition at line 61 of file ShortIdBlock.H.

References bits, leaseExpires, next, and start.

int ShortIdBlock::keepDerived ShortIdsFile  ds,
time_t  dt,
bool  force
throw (SRPC::failure) [static]
 

Definition at line 58 of file ShortIdBlockBogusRPC.C.

References KeepDerived().

Referenced by SourceOrDerived::keepDerived().

bool ShortIdBlock::leaf  )  throw () [inline]
 

Definition at line 59 of file ShortIdBlock.H.

References SourceOrDerived::leafShortId(), and start.

void ShortIdBlock::release ShortIdBlock block  )  throw (SRPC::failure) [static]
 

Definition at line 51 of file ShortIdBlockBogusRPC.C.

References ReleaseShortIdBlock().

bool ShortIdBlock::renew ShortIdBlock block  )  throw (SRPC::failure) [static]
 

Definition at line 43 of file ShortIdBlockBogusRPC.C.

Referenced by ShortIdStock::stockboy().

void ShortIdBlock::set ShortId  s  )  throw () [inline]
 

Definition at line 57 of file ShortIdBlock.H.

References bits, and start.

char * ShortIdBlock::shortIdToName ShortId  sid,
const char *  prepend = ""
throw () [static]
 

Definition at line 71 of file ShortIdBlock.C.

References Text::cchars(), NEW_PTRFREE_ARRAY, and PathnameSep.

Referenced by AcquireShortIdBlock(), any_fattr(), apply_sattr(), CopyShortId(), VLeaf::setTimestamp(), and SourceOrDerived::shortIdToName().


Member Data Documentation

Bit8 ShortIdBlock::bits[size/8]
 

Definition at line 42 of file ShortIdBlock.H.

Referenced by assigned(), init(), and set().

time_t ShortIdBlock::leaseExpires
 

Definition at line 44 of file ShortIdBlock.H.

Referenced by init(), and ShortIdStock::stockboy().

ShortId ShortIdBlock::next
 

Definition at line 52 of file ShortIdBlock.H.

Referenced by init().

ShortId ShortIdBlock::start
 

Definition at line 43 of file ShortIdBlock.H.

Referenced by assigned(), init(), leaf(), set(), ShortIdReceptionist(), and ShortIdStock::stockboy().


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