XrdMonBufferedOutput Class Reference

#include <XrdMonBufferedOutput.hh>

List of all members.

Public Member Functions

 XrdMonBufferedOutput (const char *outFileName, const char *lockFileName, int bufSize)
 ~XrdMonBufferedOutput ()
void add (const char *s)
void flush (bool lockMutex=true)

Private Attributes

char * _fName
char * _fNameLock
char * _buf
const int _bufSize
XrdSysMutex _mutex


Detailed Description

Definition at line 20 of file XrdMonBufferedOutput.hh.


Constructor & Destructor Documentation

XrdMonBufferedOutput::XrdMonBufferedOutput ( const char *  outFileName,
const char *  lockFileName,
int  bufSize 
)

Definition at line 26 of file XrdMonBufferedOutput.cc.

References _buf, _bufSize, _fName, _fNameLock, sprintf(), and strcpy().

XrdMonBufferedOutput::~XrdMonBufferedOutput (  ) 

Definition at line 48 of file XrdMonBufferedOutput.cc.

References _buf, _fName, and _fNameLock.


Member Function Documentation

void XrdMonBufferedOutput::add ( const char *  s  ) 

Definition at line 56 of file XrdMonBufferedOutput.cc.

References _buf, _bufSize, _mutex, flush(), XrdSysMutexHelper::Lock(), and strcat().

Referenced by XrdMonDecSink::addStageInfo(), XrdMonDecSink::addUserDisconnect(), XrdMonDecSink::addUserId(), XrdMonDecSink::addVersion(), XrdMonDecSink::closeFile(), XrdMonDecSink::openFile(), and XrdMonDecSink::registerXrdRestart().

void XrdMonBufferedOutput::flush ( bool  lockMutex = true  ) 

Definition at line 67 of file XrdMonBufferedOutput.cc.

References _buf, _fName, _fNameLock, _mutex, close, fcntl(), flush, XrdSysMutexHelper::Lock(), m, open, s, S_IRGRP, S_IROTH, S_IRUSR, S_IWUSR, strcpy(), and write.

Referenced by add(), flush2disk(), XrdMonDecSink::flushRealTimeData(), and XrdMonDecSink::~XrdMonDecSink().


Member Data Documentation

char* XrdMonBufferedOutput::_fName [private]

Definition at line 31 of file XrdMonBufferedOutput.hh.

Referenced by flush(), XrdMonBufferedOutput(), and ~XrdMonBufferedOutput().

char* XrdMonBufferedOutput::_fNameLock [private]

Definition at line 32 of file XrdMonBufferedOutput.hh.

Referenced by flush(), XrdMonBufferedOutput(), and ~XrdMonBufferedOutput().

char* XrdMonBufferedOutput::_buf [private]

Definition at line 34 of file XrdMonBufferedOutput.hh.

Referenced by add(), flush(), XrdMonBufferedOutput(), and ~XrdMonBufferedOutput().

const int XrdMonBufferedOutput::_bufSize [private]

Definition at line 35 of file XrdMonBufferedOutput.hh.

Referenced by add(), and XrdMonBufferedOutput().

XrdSysMutex XrdMonBufferedOutput::_mutex [private]

Definition at line 37 of file XrdMonBufferedOutput.hh.

Referenced by add(), and flush().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:34 2011 for ROOT_528-00b_version by  doxygen 1.5.1