xrootd
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
XrdCnsLogFile Class Reference

#include <XrdCnsLogFile.hh>

Collaboration diagram for XrdCnsLogFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int Add (XrdCnsLogRec *Rec, int doSync=1)
int Commit ()
int Eol ()
const char * FName ()
char * getLog (int &Dlen)
XrdCnsLogRecgetRec ()
int Open (int aBuff=1, off_t thePos=0)
XrdCnsLogFileSubscribe (const char *Path, int cNum)
int Unlink ()
 XrdCnsLogFile (const char *Path, int cnum=0, int Wait=1)
 ~XrdCnsLogFile ()

Static Public Member Functions

static void maxRecs (int nRecs)

Public Attributes

XrdCnsLogFileNext

Private Member Functions

int Read (char *buff, int blen)

Private Attributes

XrdSysMutex logMutex
XrdSysSemaphore logSem
XrdSysSemaphore synSem
XrdCnsLogFilesubNext
XrdCnsLogRec Rec
char * logBuff
char * logNext
char * logFN
int logFD
int logRdr
int logWait
int logOffset
int recOffset

Static Private Attributes

static int logRMax = 1024
static int logBMax = 1024 * sizeof(XrdCnsLogRec)

Constructor & Destructor Documentation

XrdCnsLogFile::XrdCnsLogFile ( const char *  Path,
int  cnum = 0,
int  Wait = 1 
) [inline]
XrdCnsLogFile::~XrdCnsLogFile ( )

References close.


Member Function Documentation

int XrdCnsLogFile::Add ( XrdCnsLogRec Rec,
int  doSync = 1 
)
int XrdCnsLogFile::Commit ( )
int XrdCnsLogFile::Eol ( )
const char* XrdCnsLogFile::FName ( ) [inline]
char* XrdCnsLogFile::getLog ( int &  Dlen) [inline]

References logBuff, and logNext.

Referenced by XrdCnsLogClient::Archive().

XrdCnsLogRec * XrdCnsLogFile::getRec ( )
static void XrdCnsLogFile::maxRecs ( int  nRecs) [inline, static]

References logBMax, and logRMax.

Referenced by XrdCnsLogServer::Init().

int XrdCnsLogFile::Open ( int  aBuff = 1,
off_t  thePos = 0 
)
int XrdCnsLogFile::Read ( char *  buff,
int  blen 
) [private]
XrdCnsLogFile * XrdCnsLogFile::Subscribe ( const char *  Path,
int  cNum 
)
int XrdCnsLogFile::Unlink ( )

Member Data Documentation

int XrdCnsLogFile::logBMax = 1024 * sizeof(XrdCnsLogRec) [static, private]

Referenced by maxRecs().

char* XrdCnsLogFile::logBuff [private]

Referenced by getLog().

int XrdCnsLogFile::logFD [private]
char* XrdCnsLogFile::logFN [private]

Referenced by FName().

char* XrdCnsLogFile::logNext [private]

Referenced by getLog().

int XrdCnsLogFile::logOffset [private]
int XrdCnsLogFile::logRdr [private]
int XrdCnsLogFile::logRMax = 1024 [static, private]

Referenced by maxRecs().

Referenced by Add(), and Eol().

int XrdCnsLogFile::logWait [private]

Referenced by Eol(), and Subscribe().

int XrdCnsLogFile::recOffset [private]

Referenced by Add(), Eol(), and Subscribe().

Referenced by Eol(), and Subscribe().


The documentation for this class was generated from the following files: