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

VestaLogPrivate Struct Reference

#include <VestaLogPrivate.H>

List of all members.

Public Types

enum  State {
  initial = 0, recovering, recovered, ready,
  logging, bad
}

Public Member Functions

VLogBlockballoc () throw ()
void bfree (VLogBlock *b) throw ()
void extendCur () throw (VestaLog::Eof, VestaLog::Error)
void makeBytesAvail () throw (VestaLog::Eof, VestaLog::Error)
void writeCur () throw (VestaLog::Error)
void makeSpaceAvail () throw (VestaLog::Error)
void eraseUncommitted (int fd) throw (VestaLog::Error)
VLogBlockreadBlock () throw (VestaLog::Error)

Public Attributes

bool checkpointing
bool readonly
bool bakckp
bool hitEOF
bool usePocket
bool commUsePocket
int nesting
State state
char * directory
char * directory2
int version
int ccVersion
int ccVersion2
int fd
int fd2
int lockfd
int lockfd2
int curSeq
int curLen
int nextSeq
int nextPhy
int commSeq
int commPhy
int commPocketPhy
VLogBlockcur
VLogBlocklast
VLogBlockpocket
VLogBlockfree


Member Enumeration Documentation

enum VestaLogPrivate::State
 

Enumeration values:
initial 
recovering 
recovered 
ready 
logging 
bad 

Definition at line 81 of file VestaLogPrivate.H.


Member Function Documentation

VLogBlock* VestaLogPrivate::balloc  )  throw () [inline]
 

Definition at line 112 of file VestaLogPrivate.H.

References free, NEW, and VLogBlock::next.

Referenced by VestaLog::loggingBegin(), and readBlock().

void VestaLogPrivate::bfree VLogBlock b  )  throw () [inline]
 

Definition at line 122 of file VestaLogPrivate.H.

References free.

Referenced by makeBytesAvail(), and readBlock().

void VestaLogPrivate::eraseUncommitted int  fd  )  throw (VestaLog::Error)
 

Definition at line 573 of file VestaLog.C.

References VLogBlock::data, Basics::errno_Text(), VLogBlock::data_block::setLen(), VLogBlock::data_block::setSeq(), and VLogBlock::data_block::setVer().

Referenced by VestaLog::abort(), and VestaLog::loggingBegin().

void VestaLogPrivate::extendCur  )  throw (VestaLog::Eof, VestaLog::Error)
 

Definition at line 354 of file VestaLog.C.

References VLogBlock::data, VLogBlock::data_block::getSeq(), VLogBlock::data_block::getVer(), VLogBlock::next, VLogBlock::phy, VLogBlock::pocketPhy, and VLogBlock::tailCommitted.

Referenced by makeBytesAvail().

void VestaLogPrivate::makeBytesAvail  )  throw (VestaLog::Eof, VestaLog::Error)
 

Definition at line 439 of file VestaLog.C.

References bfree(), VLogBlock::data_block::bytes, cur, curLen, curSeq, VLogBlock::data, extendCur(), VLogBlock::data_block::getLen(), hitEOF, last, VLogBlock::next, nextPhy, VLogBlock::phy, pocket, VLogBlock::pocketPhy, readBlock(), and VLogBlock::tailCommitted.

Referenced by VestaLog::eof().

void VestaLogPrivate::makeSpaceAvail  )  throw (VestaLog::Error)
 

Definition at line 857 of file VestaLog.C.

References VLogBlock::data_block::bytes, commPhy, commPocketPhy, commUsePocket, cur, curLen, curSeq, VLogBlock::data, VLogBlock::phy, VLogBlock::pocketPhy, VLogBlock::data_block::setLen(), VLogBlock::data_block::setSeq(), VLogBlock::data_block::setVer(), usePocket, and writeCur().

VLogBlock * VestaLogPrivate::readBlock  )  throw (VestaLog::Error)
 

Definition at line 268 of file VestaLog.C.

References bad, balloc(), bfree(), VLogBlock::data, Basics::errno_Text(), fd, fd2, VLogBlock::data_block::getLen(), VLogBlock::data_block::getSeq(), VLogBlock::data_block::getVer(), hitEOF, VLogBlock::data_block::setLen(), VLogBlock::data_block::setSeq(), VLogBlock::data_block::setVer(), and state.

Referenced by makeBytesAvail().

void VestaLogPrivate::writeCur  )  throw (VestaLog::Error)
 

Definition at line 828 of file VestaLog.C.

References bad, cur, VLogBlock::data, Basics::errno_Text(), fd, fd2, VLogBlock::data_block::getVer(), VLogBlock::phy, VLogBlock::pocketPhy, VLogBlock::data_block::setVer(), state, and usePocket.

Referenced by VestaLog::commit(), and makeSpaceAvail().


Member Data Documentation

bool VestaLogPrivate::bakckp
 

Definition at line 84 of file VestaLogPrivate.H.

Referenced by VestaLog::checkpointEnd().

int VestaLogPrivate::ccVersion
 

Definition at line 93 of file VestaLogPrivate.H.

Referenced by VestaLog::checkpointAbort(), and VestaLog::checkpointEnd().

int VestaLogPrivate::ccVersion2
 

Definition at line 94 of file VestaLogPrivate.H.

Referenced by VestaLog::checkpointEnd().

bool VestaLogPrivate::checkpointing
 

Definition at line 82 of file VestaLogPrivate.H.

Referenced by VestaLog::checkpointAbort(), and VestaLog::checkpointEnd().

int VestaLogPrivate::commPhy
 

Definition at line 104 of file VestaLogPrivate.H.

Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), makeSpaceAvail(), and VestaLog::nextLog().

int VestaLogPrivate::commPocketPhy
 

Definition at line 105 of file VestaLogPrivate.H.

Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), makeSpaceAvail(), and VestaLog::nextLog().

int VestaLogPrivate::commSeq
 

Definition at line 103 of file VestaLogPrivate.H.

Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), and VestaLog::nextLog().

bool VestaLogPrivate::commUsePocket
 

Definition at line 87 of file VestaLogPrivate.H.

Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), makeSpaceAvail(), and VestaLog::nextLog().

VLogBlock* VestaLogPrivate::cur
 

Definition at line 106 of file VestaLogPrivate.H.

Referenced by VestaLog::abort(), VestaLog::close(), VestaLog::commit(), VestaLog::loggingBegin(), makeBytesAvail(), makeSpaceAvail(), VestaLog::nextLog(), and writeCur().

int VestaLogPrivate::curLen
 

Definition at line 100 of file VestaLogPrivate.H.

Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), makeBytesAvail(), makeSpaceAvail(), and VestaLog::nextLog().

int VestaLogPrivate::curSeq
 

Definition at line 99 of file VestaLogPrivate.H.

Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), makeBytesAvail(), makeSpaceAvail(), and VestaLog::nextLog().

char* VestaLogPrivate::directory
 

Definition at line 90 of file VestaLogPrivate.H.

Referenced by VestaLog::checkpointAbort(), VestaLog::checkpointEnd(), VestaLog::close(), VestaLog::nextLog(), and VestaLog::openCheckpoint().

char* VestaLogPrivate::directory2
 

Definition at line 91 of file VestaLogPrivate.H.

Referenced by VestaLog::checkpointEnd(), and VestaLog::nextLog().

int VestaLogPrivate::fd
 

Definition at line 95 of file VestaLogPrivate.H.

Referenced by VestaLog::abort(), VestaLog::close(), VestaLog::commit(), VestaLog::loggingBegin(), VestaLog::nextLog(), readBlock(), and writeCur().

int VestaLogPrivate::fd2
 

Definition at line 96 of file VestaLogPrivate.H.

Referenced by VestaLog::abort(), VestaLog::close(), VestaLog::commit(), VestaLog::loggingBegin(), VestaLog::nextLog(), readBlock(), and writeCur().

VLogBlock* VestaLogPrivate::free
 

Definition at line 110 of file VestaLogPrivate.H.

Referenced by balloc(), bfree(), VestaLog::close(), VestaLog::loggingBegin(), and VestaLog::nextLog().

bool VestaLogPrivate::hitEOF
 

Definition at line 85 of file VestaLogPrivate.H.

Referenced by VestaLog::loggingBegin(), makeBytesAvail(), VestaLog::nextLog(), and readBlock().

VLogBlock* VestaLogPrivate::last
 

Definition at line 108 of file VestaLogPrivate.H.

Referenced by VestaLog::close(), VestaLog::loggingBegin(), makeBytesAvail(), and VestaLog::nextLog().

int VestaLogPrivate::lockfd
 

Definition at line 97 of file VestaLogPrivate.H.

Referenced by VestaLog::close().

int VestaLogPrivate::lockfd2
 

Definition at line 98 of file VestaLogPrivate.H.

Referenced by VestaLog::close().

int VestaLogPrivate::nesting
 

Definition at line 88 of file VestaLogPrivate.H.

Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::nesting(), VestaLog::nextLog(), and VestaLog::start().

int VestaLogPrivate::nextPhy
 

Definition at line 102 of file VestaLogPrivate.H.

Referenced by VestaLog::loggingBegin(), makeBytesAvail(), and VestaLog::nextLog().

int VestaLogPrivate::nextSeq
 

Definition at line 101 of file VestaLogPrivate.H.

Referenced by VestaLog::nextLog().

VLogBlock* VestaLogPrivate::pocket
 

Definition at line 109 of file VestaLogPrivate.H.

Referenced by VestaLog::close(), VestaLog::loggingBegin(), makeBytesAvail(), and VestaLog::nextLog().

bool VestaLogPrivate::readonly
 

Definition at line 83 of file VestaLogPrivate.H.

Referenced by VestaLog::loggingBegin(), and VestaLog::nextLog().

State VestaLogPrivate::state
 

Definition at line 89 of file VestaLogPrivate.H.

Referenced by VestaLog::abort(), VestaLog::checkpointAbort(), VestaLog::checkpointEnd(), VestaLog::close(), VestaLog::commit(), VestaLog::eof(), VestaLog::loggingBegin(), VestaLog::logVersion(), VestaLog::nextLog(), VestaLog::openCheckpoint(), readBlock(), VestaLog::start(), VestaLog::VestaLog(), and writeCur().

bool VestaLogPrivate::usePocket
 

Definition at line 86 of file VestaLogPrivate.H.

Referenced by VestaLog::abort(), VestaLog::commit(), VestaLog::loggingBegin(), makeSpaceAvail(), VestaLog::nextLog(), and writeCur().

int VestaLogPrivate::version
 

Definition at line 92 of file VestaLogPrivate.H.

Referenced by VestaLog::checkpointAbort(), VestaLog::checkpointEnd(), VestaLog::logVersion(), VestaLog::nextLog(), and VestaLog::openCheckpoint().


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