#include <EmptyPKLog.H>
Public Types | |
typedef Table< FP::Tag, PKFile::Epoch >::Default | PKEpochTbl |
typedef Table< FP::Tag, PKFile::Epoch >::Default | PKEpochIter |
Public Member Functions | |
EmptyPKLog (Basics::mutex *mu, CacheIntf::DebugLevel, bool readonly=false) throw (VestaLog::Error) | |
~EmptyPKLog () throw () | |
bool | EndOfFile () throw (VestaLog::Error) |
bool | NextLog () throw (VestaLog::Error) |
void | Read (FP::Tag &pk, PKFile::Epoch &pkEpoch) throw (VestaLog::Error, VestaLog::Eof) |
void | EndRecovery () throw (VestaLog::Error) |
void | CheckpointBegin () throw (FS::Failure, VestaLog::Error) |
void | CheckpointEnd () throw (VestaLog::Error) |
void | Write (const FP::Tag &pk, PKFile::Epoch pkEpoch) throw (VestaLog::Error) |
bool | GetEpoch0 (const FP::Tag &pk, PKFile::Epoch &pkEpoch) throw () |
bool | GetEpoch (const FP::Tag &pk, PKFile::Epoch &pkEpoch) throw () |
Private Attributes | |
CacheIntf::DebugLevel | debug |
Basics::mutex * | mu |
VestaLog * | log |
RecoveryReader * | rd |
PKEpochTbl * | oldEmptyPKTbl |
PKEpochTbl * | emptyPKTbl |
|
Definition at line 78 of file EmptyPKLog.H. |
|
Definition at line 77 of file EmptyPKLog.H. |
|
Definition at line 42 of file EmptyPKLog.C. References Text::chars(), Config_EmptyPKLogPath, mu, NEW, and NEW_CONSTR. |
|
Definition at line 88 of file EmptyPKLog.H. References VestaLog::close(), and log. |
|
Definition at line 72 of file EmptyPKLog.C. References VestaLog::checkpointBegin(), FS::Close(), emptyPKTbl, Basics::mutex::lock(), log, mu, NEW, oldEmptyPKTbl, and Basics::mutex::unlock(). |
|
Definition at line 87 of file EmptyPKLog.C. References VestaLog::checkpointEnd(), Basics::mutex::lock(), log, mu, oldEmptyPKTbl, VestaLog::prune(), and Basics::mutex::unlock(). |
|
Definition at line 97 of file EmptyPKLog.H. References RecoveryReader::eof(), and rd. |
|
Definition at line 112 of file EmptyPKLog.H. References log, VestaLog::loggingBegin(), and rd. Referenced by CacheS::RecoverCacheLog(). |
|
Definition at line 142 of file EmptyPKLog.C. References Basics::mutex::lock(), mu, and Basics::mutex::unlock(). |
|
Definition at line 133 of file EmptyPKLog.C. |
|
Definition at line 101 of file EmptyPKLog.H. References log, and VestaLog::nextLog(). Referenced by PrintEmptyPKLog(). |
|
Definition at line 55 of file EmptyPKLog.C. |
|
Definition at line 100 of file EmptyPKLog.C. References Debug::Lock(), Basics::mutex::lock(), CacheIntf::LogFlush, mu, Debug::Timestamp(), Basics::mutex::unlock(), and Debug::Unlock(). |
|
Definition at line 158 of file EmptyPKLog.H. |
|
Definition at line 165 of file EmptyPKLog.H. Referenced by CheckpointBegin(). |
|
Definition at line 162 of file EmptyPKLog.H. Referenced by CheckpointBegin(), CheckpointEnd(), EndRecovery(), NextLog(), and ~EmptyPKLog(). |
|
Definition at line 161 of file EmptyPKLog.H. Referenced by CheckpointBegin(), and CheckpointEnd(). |
|
Definition at line 164 of file EmptyPKLog.H. Referenced by CheckpointBegin(), and CheckpointEnd(). |
|
Definition at line 163 of file EmptyPKLog.H. Referenced by EndOfFile(), and EndRecovery(). |