xrootd
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
XrdCnsLogFile Class Reference

#include <XrdCnsLogFile.hh>

Collaboration diagram for XrdCnsLogFile:
Collaboration graph
[legend]

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
 
static int logBMax
 

Constructor & Destructor Documentation

◆ XrdCnsLogFile()

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

◆ ~XrdCnsLogFile()

XrdCnsLogFile::~XrdCnsLogFile ( )

Member Function Documentation

◆ Add()

int XrdCnsLogFile::Add ( XrdCnsLogRec Rec,
int  doSync = 1 
)

◆ Commit()

int XrdCnsLogFile::Commit ( )

◆ Eol()

int XrdCnsLogFile::Eol ( )

◆ FName()

const char* XrdCnsLogFile::FName ( )
inline

References logFN.

◆ getLog()

char* XrdCnsLogFile::getLog ( int &  Dlen)
inline

References logBuff, and logNext.

◆ getRec()

XrdCnsLogRec* XrdCnsLogFile::getRec ( )

◆ maxRecs()

static void XrdCnsLogFile::maxRecs ( int  nRecs)
inlinestatic

References logBMax, and logRMax.

◆ Open()

int XrdCnsLogFile::Open ( int  aBuff = 1,
off_t  thePos = 0 
)

◆ Read()

int XrdCnsLogFile::Read ( char *  buff,
int  blen 
)
private

◆ Subscribe()

XrdCnsLogFile* XrdCnsLogFile::Subscribe ( const char *  Path,
int  cNum 
)

◆ Unlink()

int XrdCnsLogFile::Unlink ( )

Member Data Documentation

◆ logBMax

int XrdCnsLogFile::logBMax
staticprivate

Referenced by maxRecs().

◆ logBuff

char* XrdCnsLogFile::logBuff
private

Referenced by getLog().

◆ logFD

int XrdCnsLogFile::logFD
private

◆ logFN

char* XrdCnsLogFile::logFN
private

Referenced by FName().

◆ logMutex

XrdSysMutex XrdCnsLogFile::logMutex
private

◆ logNext

char* XrdCnsLogFile::logNext
private

Referenced by getLog().

◆ logOffset

int XrdCnsLogFile::logOffset
private

◆ logRdr

int XrdCnsLogFile::logRdr
private

◆ logRMax

int XrdCnsLogFile::logRMax
staticprivate

Referenced by maxRecs().

◆ logSem

XrdSysSemaphore XrdCnsLogFile::logSem
private

◆ logWait

int XrdCnsLogFile::logWait
private

◆ Next

XrdCnsLogFile* XrdCnsLogFile::Next

◆ Rec

XrdCnsLogRec XrdCnsLogFile::Rec
private

◆ recOffset

int XrdCnsLogFile::recOffset
private

◆ subNext

XrdCnsLogFile* XrdCnsLogFile::subNext
private

◆ synSem

XrdSysSemaphore XrdCnsLogFile::synSem
private

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