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

SourceOrDerived Class Reference

#include <SourceOrDerived.H>

List of all members.

Public Member Functions

ShortId create (bool leafflag=true, std::ios::openmode mode=std::ios::out, mode_t prot=default_prot) throw (SRPC::failure, Fatal)
void open (ShortId sid, std::ios::openmode mode=std::ios::in) throw ()

Static Public Member Functions

static void setMetadataRootLocalName (char *pathname) throw ()
static char * getMetadataRootLocalName () throw ()
static int fdcreate (ShortId &sid, bool leafflag=true, mode_t prot=default_prot) throw (SRPC::failure, Fatal)
static int fdopen (ShortId sid, int oflag, mode_t prot=default_prot) throw ()
static bool leafShortId (ShortId sid) throw ()
static bool dirShortId (ShortId sid) throw ()
static char * shortIdToName (ShortId sid, bool tailOnly=true) throw ()
static void releaseResources () throw ()
static bool touch (ShortId sid) throw ()
static int keepDerived (ShortIdsFile ds, time_t dt, bool force=false) 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)

Static Public Attributes

static const mode_t default_prot = (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)

Private Member Functions

void open (const char *name, std::ios::openmode mode)

Classes

class  Fatal


Member Function Documentation

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

Definition at line 449 of file SourceOrDerived.C.

References ShortIdBlock::checkpoint().

Referenced by Weeder::DeletionPhase(), and main().

ShortId SourceOrDerived::create bool  leafflag = true,
std::ios::openmode  mode = std::ios::out,
mode_t  prot = default_prot
throw (SRPC::failure, Fatal)
 

Definition at line 306 of file SourceOrDerived.C.

References FS::Exists(), FS::IsDirectory(), ShortIdStock::newShortId(), NullShortId, FdCache::open(), shortIdToName(), and FS::Touch().

Referenced by main().

static bool SourceOrDerived::dirShortId ShortId  sid  )  throw () [inline, static]
 

Definition at line 113 of file SourceOrDerived.H.

Referenced by LongId::fromShortId().

int SourceOrDerived::fdcreate ShortId sid,
bool  leafflag = true,
mode_t  prot = default_prot
throw (SRPC::failure, Fatal) [static]
 

Definition at line 388 of file SourceOrDerived.C.

References ShortIdStock::newShortId(), NullShortId, FdCache::open(), and shortIdToName().

Referenced by CopyShortId(), do_create(), DoDeletions(), VDirChangeable::insertMutableFile(), main(), and SourceWeed().

int SourceOrDerived::fdopen ShortId  sid,
int  oflag,
mode_t  prot = default_prot
throw () [static]
 

Definition at line 420 of file SourceOrDerived.C.

References FdCache::open(), and shortIdToName().

Referenced by FdCache::PartialCache::open(), and KeepDerived().

char * SourceOrDerived::getMetadataRootLocalName  )  throw () [static]
 

Definition at line 125 of file SourceOrDerived.C.

References Basics::mutex::lock(), SourceOrDerived_initMRLN(), and Basics::mutex::unlock().

Referenced by init_repository_access().

void SourceOrDerived::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 455 of file SourceOrDerived.C.

References ShortIdBlock::getWeedingState().

Referenced by main().

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

Definition at line 442 of file SourceOrDerived.C.

References ShortIdBlock::keepDerived().

Referenced by Weeder::DeletionPhase(), and main().

static bool SourceOrDerived::leafShortId ShortId  sid  )  throw () [inline, static]
 

Definition at line 107 of file SourceOrDerived.H.

Referenced by ShortIdBlock::leaf(), and main().

void SourceOrDerived::open ShortId  sid,
std::ios::openmode  mode = std::ios::in
throw ()
 

Definition at line 373 of file SourceOrDerived.C.

References FS::Exists(), FdCache::open(), and shortIdToName().

void SourceOrDerived::open const char *  name,
std::ios::openmode  mode
[inline, private]
 

Definition at line 59 of file SourceOrDerived.H.

Referenced by DeleteAllShortIdsBut(), main(), RunTool(), TextVC::Sid(), TextVC::TextC::TextC(), and TextVC::TextVC().

void SourceOrDerived::releaseResources  )  throw () [static]
 

! Temporarily a no-op

Definition at line 236 of file SourceOrDerived.C.

void SourceOrDerived::setMetadataRootLocalName char *  pathname  )  throw () [static]
 

Definition at line 114 of file SourceOrDerived.C.

References Basics::mutex::lock(), SourceOrDerived_initMRLN(), and Basics::mutex::unlock().

Referenced by init_repository_access(), and main().

char * SourceOrDerived::shortIdToName ShortId  sid,
bool  tailOnly = true
throw () [static]
 

Definition at line 265 of file SourceOrDerived.C.

References Basics::mutex::lock(), ShortIdBlock::shortIdToName(), SourceOrDerived_initMRLN(), and Basics::mutex::unlock().

Referenced by AddToNewStuff(), TextVC::Content(), create(), do_readlink(), DoDeletions(), fdcreate(), fdopen(), TextVC::Length(), main(), TextVC::NDS(), open(), TextVC::PrintD(), RunTool(), ShipShortId(), TextVC::Sid(), TextVC::TextC::TextC(), and touch().

bool SourceOrDerived::touch ShortId  sid  )  throw () [static]
 

Definition at line 430 of file SourceOrDerived.C.

References ok(), and shortIdToName().

Referenced by main().


Member Data Documentation

const mode_t SourceOrDerived::default_prot = (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) [static]
 

Definition at line 62 of file SourceOrDerived.H.


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