#include <VestaLog.H>
Public Member Functions | |
VestaLog () throw () | |
void | open (char *dir, int ver=-1, bool readonly=false, bool lock=false, char *dir2=NULL, bool bakckp=false) throw (Error) |
int | logVersion () throw (Error) |
std::fstream * | openCheckpoint () throw (Error) |
void | get (char &c) throw (Eof, Error) |
void | get (char *p, int n, char term='\n') throw (Eof, Error) |
int | read (char *p, int n) throw (Error) |
void | readAll (char *p, int n) throw (Eof, Error) |
bool | eof () throw (Error) |
bool | nextLog () throw (Error) |
void | loggingBegin () throw (Error) |
void | start () throw (Error) |
int | nesting () throw () |
void | put (char c) throw (Error) |
void | put (const char *p) throw (Error) |
void | write (const char *p, int n) throw (Error) |
void | commit () throw (Error) |
void | abort () throw (Error) |
std::fstream * | checkpointBegin (std::ios::openmode mode=std::ios::out) throw (Error) |
void | checkpointEnd () throw (Error) |
void | checkpointAbort () throw (Error) |
std::fstream * | checkpointResume (std::ios::openmode mode=std::ios::out|std::ios::trunc) throw (Error) |
void | prune (int ckpkeep, bool logkeep=false, bool prunebak=true) throw (Error) |
void | close () throw () |
Private Attributes | |
VestaLogPrivate * | vlp |
Classes | |
class | Eof |
class | Error |
class | Exception |
|
Definition at line 63 of file VestaLog.C. References VestaLogPrivate::initial, NEW, VestaLogPrivate::state, and vlp. |
|
|
Definition at line 1227 of file VestaLog.C. References Text::cchars(), VestaLogPrivate::ccVersion, VestaLogPrivate::checkpointing, VestaLogPrivate::directory, PathnameSep, VestaLogPrivate::ready, VestaLogPrivate::state, VestaLogPrivate::version, and vlp. Referenced by CacheS::AbortGraphLogChkpt(), and main(). |
|
Definition at line 1002 of file VestaLog.C. References VestaLogPrivate::bad, Text::cchars(), FdCache::close(), Basics::errno_Text(), FS::Exists(), NEW_CONSTR, FdCache::open(), PathnameSep, VestaLogPrivate::ready, FS::Touch(), and VestaSourceSRPC::version. Referenced by EmptyPKLog::CheckpointBegin(), CheckpointServer(), CacheS::ChkptGraphLog(), main(), and CacheS::ResetWeededMPKs(). |
|
|
Definition at line 1245 of file VestaLog.C. References VestaLogPrivate::bad, Text::cchars(), Basics::errno_Text(), FS::Exists(), NEW_CONSTR, PathnameSep, and VestaLogPrivate::recovered. Referenced by main(), and CacheS::RecoverGraphLog(). |
|
|
|
Definition at line 562 of file VestaLog.C. References VestaLogPrivate::makeBytesAvail(), VestaLogPrivate::recovering, VestaLogPrivate::state, and vlp. Referenced by RecoveryReader::eof(). |
|
Definition at line 487 of file VestaLog.C. References VestaLogPrivate::recovering. |
|
Definition at line 251 of file VestaLog.C. References VestaLogPrivate::recovering. Referenced by main(), and CacheS::RecoverGraphLog(). |
|
|
Definition at line 225 of file VestaLog.C. References VestaLogPrivate::bad, VestaLogPrivate::initial, VestaLogPrivate::state, VestaLogPrivate::version, and vlp. Referenced by CacheS::ChkptGraphLog(), and CacheS::RecoverGraphLog(). |
|
Definition at line 821 of file VestaLog.C. References VestaLogPrivate::nesting, and vlp. Referenced by VDirChangeable::freeTree(), VDirChangeable::insertCommon(), and VDirChangeable::reallyDelete(). |
|
|
Definition at line 71 of file VestaLog.C. References VestaLogPrivate::bad, Text::cchars(), Basics::errno_Text(), VestaLogPrivate::initial, NEW_PTRFREE_ARRAY, ok(), FdCache::open(), PathnameSep, and VestaLogPrivate::recovering. Referenced by main(), nextLog(), PrintCacheLog(), Recover(), CacheS::RecoverCacheLog(), CacheS::RecoverCILog(), CacheS::RecoverGraphLog(), and CacheS::RecoverWeededMPKs(). |
|
Definition at line 234 of file VestaLog.C. References VestaLogPrivate::bad, Text::cchars(), VestaLogPrivate::directory, Basics::errno_Text(), NEW_CONSTR, PathnameSep, VestaLogPrivate::recovering, VestaLogPrivate::state, VestaLogPrivate::version, and vlp. Referenced by main(), PrintCacheLog(), Recover(), CacheS::RecoverCacheLog(), and CacheS::RecoverCILog(). |
|
Definition at line 1377 of file VestaLog.C. References VestaLogPrivate::bad, and VestaLogPrivate::initial. Referenced by EmptyPKLog::CheckpointEnd(), main(), and CacheS::ResetWeededMPKs(). |
|
Definition at line 897 of file VestaLog.C. References VestaLogPrivate::logging. |
|
|
Definition at line 512 of file VestaLog.C. References VestaLogPrivate::recovering. Referenced by abort(). |
|
Definition at line 540 of file VestaLog.C. References VestaLogPrivate::recovering. Referenced by CacheS::RecoverWeededMPKs(). |
|
|
Definition at line 910 of file VestaLog.C. References VestaLogPrivate::logging. |
|
Definition at line 385 of file VestaLog.H. Referenced by abort(), checkpointAbort(), checkpointEnd(), close(), commit(), eof(), loggingBegin(), logVersion(), nesting(), nextLog(), openCheckpoint(), start(), and VestaLog(). |