#include <XrdCnsLogServer.hh>
Public Member Functions | |
int | Init (XrdOucTList *rList) |
void | Run () |
XrdCnsLogServer () | |
~XrdCnsLogServer () | |
Private Member Functions | |
void | Massage (XrdCnsLogRec *lrP) |
Private Attributes | |
XrdCnsLogClient * | Client |
XrdCnsLogFile * | logFile |
char | logDir [MAXPATHLEN+1] |
char * | logFN |
Definition at line 21 of file XrdCnsLogServer.hh.
XrdCnsLogServer::XrdCnsLogServer | ( | ) |
Definition at line 68 of file XrdCnsLogServer.cc.
References XrdFrm::Config(), logDir, logFN, and strcpy().
XrdCnsLogServer::~XrdCnsLogServer | ( | ) | [inline] |
Definition at line 30 of file XrdCnsLogServer.hh.
int XrdCnsLogServer::Init | ( | XrdOucTList * | rList | ) |
Definition at line 80 of file XrdCnsLogServer.cc.
References XrdCnsLogClient::Activate(), Client, XrdFrm::Config(), XrdSysError::Emsg(), XrdCnsLogFile::Eol(), XrdCnsLogClient::Init(), logDir, logFile, logFN, XrdCnsLogFile::maxRecs(), XrdCns::MLog, XrdOucTList::next, XrdCnsLogFile::Open(), XrdCnsConfig::optRecr, XrdSysThread::Run(), XrdCnsLogClient::Start(), XrdCns::StartLogServer(), stat, strcpy(), XrdOucTList::text, unlink, and XRDSYSTHREAD_BIND.
void XrdCnsLogServer::Run | ( | ) |
Definition at line 190 of file XrdCnsLogServer.cc.
References XrdCnsLogClient::Activate(), XrdCnsLogFile::Add(), Client, XrdFrm::Config(), DEBUG, XrdSysError::Emsg(), XrdCnsLogFile::Eol(), XrdCnsLogRec::Get(), logDir, logFile, XrdCnsLogRec::lrCreate, Massage(), XrdCns::MLog, XrdCnsLogFile::Open(), XrdCnsLogRec::Recycle(), TRACE, XrdCnsLogRec::Type(), and XrdCnsLogFile::Unlink().
Referenced by XrdCns::StartLogServer().
void XrdCnsLogServer::Massage | ( | XrdCnsLogRec * | lrP | ) | [private] |
Definition at line 157 of file XrdCnsLogServer.cc.
References XrdFrm::Config(), XrdOssPath::Extract(), XrdCnsLogRec::Lfn1(), XrdFrmConfig::LocalPath(), XrdCnsLogRec::setData(), and strcpy().
Referenced by Run().
XrdCnsLogClient* XrdCnsLogServer::Client [private] |
XrdCnsLogFile* XrdCnsLogServer::logFile [private] |
char XrdCnsLogServer::logDir[MAXPATHLEN+1] [private] |
Definition at line 39 of file XrdCnsLogServer.hh.
Referenced by Init(), Run(), and XrdCnsLogServer().
char* XrdCnsLogServer::logFN [private] |