|
xrootd
|
#include <XrdCnsLogRec.hh>

Classes | |
| struct | Arg |
| struct | Ctl |
| struct | LogRec |
Public Member Functions | |
| const char * | Data () |
| int | DLen () |
| int | Done (int iPos) |
| const char * | Lfn1 () |
| const char * | Lfn1 (int &Len) |
| const char * | Lfn2 () |
| mode_t | Mode () |
| void | Queue () |
| void | Recycle () |
| char * | Record () |
| int | setData (const char *dP1, const char *dP2=0) |
| void | setDone (int iPos, char Val=1) |
| int | setLen () |
| int | setLfn1 (const char *lfn) |
| int | setLfn2 (const char *lfn) |
| void | setMode (mode_t Mode) |
| void | setMount (char mCode) |
| void | setSize (long long Size) |
| void | setSpace (char sCode) |
| void | setTime (long TOD=time(0)) |
| void | setType (const char evt) |
| int | setType (const char *evt) |
| long long | Size () |
| char | Space () |
| int | L1sz () |
| int | L2sz () |
| char | Type () |
| XrdCnsLogRec (const char rType=0) | |
| ~XrdCnsLogRec () | |
Static Public Member Functions | |
| static XrdCnsLogRec * | Alloc () |
| static XrdCnsLogRec * | Get (char &lrType) |
Static Public Attributes | |
| static const int | maxClients = 4 |
| static const int | OffDone = offsetof(LogRec, Hdr.Done) |
| static const int | FixDLen = offsetof(Arg, lfn) |
| static const int | MinSize = sizeof(Ctl) |
| static const int | MaxSize = sizeof(Arg) |
| static const long | tBase = 1248126834L |
| static const char | lrClosew = 't' |
| static const char | lrCreate = 'c' |
| static const char | lrEOL = 'E' |
| static const char | lrInvD = 'I' |
| static const char | lrInvF = 'i' |
| static const char | lrMkdir = 'd' |
| static const char | lrMount = 'M' |
| static const char | lrMv = 'm' |
| static const char | lrRm = 'r' |
| static const char | lrRmdir = 'D' |
| static const char | lrSpace = 'S' |
| static const char | lrTOD = 'T' |
| static const char * | IArg = "I755 -1 " |
| static const char * | iArg = "i644 0 " |
Private Attributes | |
| XrdCnsLogRec * | Next |
| LogRec | Rec |
Static Private Attributes | |
| static XrdSysSemaphore | qSem |
| static XrdSysMutex | qMutex |
| static XrdSysMutex | fMutex |
| static XrdCnsLogRec * | freeRec = 0 |
| static XrdCnsLogRec * | frstRec = 0 |
| static XrdCnsLogRec * | lastRec = 0 |
| static int | Running = 0 |
| XrdCnsLogRec::XrdCnsLogRec | ( | const char | rType = 0 | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, XrdCnsLogRec::Ctl::dataLen, FixDLen, XrdCnsLogRec::LogRec::Hdr, XrdCnsLogRec::Arg::lfn, XrdCnsLogRec::Ctl::lfn1Len, lrEOL, lrTOD, Rec, setTime(), and XrdCnsLogRec::Arg::Type.
Referenced by Alloc().
| XrdCnsLogRec::~XrdCnsLogRec | ( | ) | [inline] |
| XrdCnsLogRec * XrdCnsLogRec::Alloc | ( | ) | [static] |
References XrdCnsLogRec::LogRec::Data, FixDLen, fMutex, freeRec, XrdCnsLogRec::LogRec::Hdr, XrdSysMutex::Lock(), XrdCnsLogRec::Arg::Mode, Next, Rec, XrdCnsLogRec::Arg::SorT, XrdCnsLogRec::Arg::Type, XrdSysMutex::UnLock(), and XrdCnsLogRec().
Referenced by XrdCns::CnsInt(), and XrdCnsDaemon::getEvents().
| const char* XrdCnsLogRec::Data | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, and Rec.
Referenced by XrdCnsLogClient::Run().
| int XrdCnsLogRec::DLen | ( | ) | [inline] |
References XrdCnsLogRec::Ctl::dataLen, XrdCnsLogRec::LogRec::Hdr, and Rec.
Referenced by XrdCnsLogFile::Eol().
| int XrdCnsLogRec::Done | ( | int | iPos | ) | [inline] |
References XrdCnsLogRec::Ctl::Done, XrdCnsLogRec::LogRec::Hdr, and Rec.
| XrdCnsLogRec * XrdCnsLogRec::Get | ( | char & | lrType | ) | [static] |
References XrdCnsLogRec::LogRec::Data, frstRec, lastRec, XrdSysMutex::Lock(), Next, qMutex, qSem, Rec, Recycle(), Running, XrdCnsLogRec::Arg::Type, XrdSysMutex::UnLock(), and XrdSysSemaphore::Wait().
Referenced by XrdCnsLogServer::Run().
| int XrdCnsLogRec::L1sz | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Hdr, XrdCnsLogRec::Ctl::lfn1Len, and Rec.
| int XrdCnsLogRec::L2sz | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Hdr, XrdCnsLogRec::Ctl::lfn2Len, and Rec.
| const char* XrdCnsLogRec::Lfn1 | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, XrdCnsLogRec::Arg::lfn, and Rec.
Referenced by XrdCnsLogClient::do_Create(), XrdCnsLogClient::do_Mkdir(), XrdCnsLogClient::do_Mv(), XrdCnsLogClient::do_Rm(), XrdCnsLogClient::do_Rmdir(), XrdCnsLogClient::do_Trunc(), XrdCnsLogServer::Massage(), and XrdCnsLogClient::Run().
| const char* XrdCnsLogRec::Lfn1 | ( | int & | Len | ) | [inline] |
| const char* XrdCnsLogRec::Lfn2 | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, XrdCnsLogRec::LogRec::Hdr, XrdCnsLogRec::Arg::lfn, XrdCnsLogRec::Ctl::lfn1Len, and Rec.
Referenced by XrdCnsLogClient::do_Mv().
| mode_t XrdCnsLogRec::Mode | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Hdr, XrdCnsLogRec::Ctl::Mode, and Rec.
Referenced by XrdCnsLogClient::do_Create(), and setMode().
| void XrdCnsLogRec::Queue | ( | ) |
References frstRec, lastRec, XrdSysMutex::Lock(), Next, XrdSysSemaphore::Post(), qMutex, qSem, Running, and XrdSysMutex::UnLock().
Referenced by XrdCns::CnsInt(), and XrdCnsDaemon::getEvents().
| char* XrdCnsLogRec::Record | ( | ) | [inline] |
References Rec.
Referenced by XrdCnsLogFile::Add(), and XrdCnsLogFile::getRec().
| void XrdCnsLogRec::Recycle | ( | ) |
References fMutex, freeRec, XrdSysMutex::Lock(), Next, and XrdSysMutex::UnLock().
Referenced by Get(), XrdCnsDaemon::getEvents(), and XrdCnsLogServer::Run().
| int XrdCnsLogRec::setData | ( | const char * | dP1, |
| const char * | dP2 = 0 |
||
| ) |
References XrdCnsLogRec::LogRec::Data, XrdCnsLogRec::LogRec::Hdr, XrdCnsLogRec::Arg::lfn, XrdCnsLogRec::Ctl::lfn1Len, XrdCnsLogRec::Ctl::lfn2Len, Rec, and setSize().
Referenced by XrdCnsLogServer::Massage().
| void XrdCnsLogRec::setDone | ( | int | iPos, |
| char | Val = 1 |
||
| ) | [inline] |
References XrdCnsLogRec::Ctl::Done, XrdCnsLogRec::LogRec::Hdr, and Rec.
| int XrdCnsLogRec::setLen | ( | ) | [inline] |
References XrdCnsLogRec::Ctl::dataLen, FixDLen, XrdCnsLogRec::LogRec::Hdr, XrdCnsLogRec::Ctl::lfn1Len, XrdCnsLogRec::Ctl::lfn2Len, and Rec.
Referenced by XrdCnsLogFile::Add().
| int XrdCnsLogRec::setLfn1 | ( | const char * | lfn | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, XrdCnsLogRec::LogRec::Hdr, XrdCnsLogRec::Arg::lfn, XrdCnsLogRec::Ctl::lfn1Len, Rec, and strlcpy().
Referenced by XrdCnsInventory::Conduct(), XrdCnsDaemon::getEvents(), XrdCnsInventory::Init(), and XrdCnsInventory::Xref().
| int XrdCnsLogRec::setLfn2 | ( | const char * | lfn | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, XrdCnsLogRec::LogRec::Hdr, XrdCnsLogRec::Arg::lfn, XrdCnsLogRec::Ctl::lfn1Len, XrdCnsLogRec::Ctl::lfn2Len, Rec, setSize(), and strlcpy().
Referenced by XrdCnsDaemon::getEvents().
| void XrdCnsLogRec::setMode | ( | mode_t | Mode | ) | [inline] |
| void XrdCnsLogRec::setMount | ( | char | mCode | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, XrdCnsLogRec::Arg::Mount, and Rec.
Referenced by XrdCnsInventory::Init(), and XrdCnsInventory::Xref().
| void XrdCnsLogRec::setSize | ( | long long | Size | ) | [inline] |
| void XrdCnsLogRec::setSpace | ( | char | sCode | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, Rec, and XrdCnsLogRec::Arg::Space.
Referenced by XrdCnsInventory::Init(), and XrdCnsInventory::Xref().
| void XrdCnsLogRec::setTime | ( | long | TOD = time(0) | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, XrdCnsLogRec::Arg::Mount, Rec, XrdCnsLogRec::Arg::SorT, and tBase.
Referenced by XrdCnsLogRec().
| int XrdCnsLogRec::setType | ( | const char * | evt | ) |
| void XrdCnsLogRec::setType | ( | const char | evt | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, Rec, and XrdCnsLogRec::Arg::Type.
Referenced by XrdCns::CnsInt(), XrdCnsDaemon::getEvents(), and setType().
| long long XrdCnsLogRec::Size | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Hdr, Rec, and XrdCnsLogRec::Ctl::Size.
Referenced by XrdCnsLogClient::do_Trunc(), and setSize().
| char XrdCnsLogRec::Space | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, Rec, and XrdCnsLogRec::Arg::Space.
Referenced by XrdCnsLogClient::do_Create(), and XrdCnsLogClient::Run().
| char XrdCnsLogRec::Type | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, Rec, and XrdCnsLogRec::Arg::Type.
Referenced by XrdCnsDaemon::getEvents(), XrdCnsLogServer::Run(), and XrdCnsLogClient::Run().
const int XrdCnsLogRec::FixDLen = offsetof(Arg, lfn) [static] |
Referenced by Alloc(), XrdCnsLogFile::getRec(), setLen(), XrdCnsSsi::Write(), XrdCnsLogRec(), XrdCnsSsiApplyM(), and XrdCnsSsiApplyS().
XrdSysMutex XrdCnsLogRec::fMutex [static, private] |
XrdCnsLogRec * XrdCnsLogRec::freeRec = 0 [static, private] |
XrdCnsLogRec * XrdCnsLogRec::frstRec = 0 [static, private] |
const char * XrdCnsLogRec::IArg = "I755 -1 " [static] |
Referenced by XrdCnsSsiDRec::XrdCnsSsiDRec().
const char * XrdCnsLogRec::iArg = "i644 0 " [static] |
Referenced by XrdCnsSsiFRec::XrdCnsSsiFRec().
XrdCnsLogRec * XrdCnsLogRec::lastRec = 0 [static, private] |
const char XrdCnsLogRec::lrClosew = 't' [static] |
Referenced by XrdCnsSsi::ApplyLogRec(), XrdCnsDaemon::getEvents(), XrdCnsLogClient::Run(), and setType().
const char XrdCnsLogRec::lrCreate = 'c' [static] |
Referenced by XrdCnsSsi::ApplyLogRec(), XrdCnsDaemon::getEvents(), XrdCnsLogServer::Run(), XrdCnsLogClient::Run(), and setType().
const char XrdCnsLogRec::lrEOL = 'E' [static] |
Referenced by XrdCnsSsi::ApplyLog(), XrdCnsLogFile::Eol(), and XrdCnsLogRec().
const char XrdCnsLogRec::lrInvD = 'I' [static] |
Referenced by XrdCnsSsi::List(), XrdCnsLogClient::Run(), and XrdCnsSsi::Updt().
const char XrdCnsLogRec::lrInvF = 'i' [static] |
Referenced by XrdCnsLogClient::Run().
const char XrdCnsLogRec::lrMkdir = 'd' [static] |
Referenced by XrdCnsSsi::ApplyLogRec(), XrdCnsDaemon::getEvents(), XrdCnsLogClient::Run(), and setType().
const char XrdCnsLogRec::lrMount = 'M' [static] |
Referenced by XrdCnsSsi::List(), XrdCnsLogClient::Run(), XrdCnsSsi::Updt(), and XrdCnsSsiApplyM().
const char XrdCnsLogRec::lrMv = 'm' [static] |
Referenced by XrdCnsSsi::ApplyLogRec(), XrdCnsDaemon::getEvents(), XrdCnsLogClient::Run(), and setType().
const char XrdCnsLogRec::lrRm = 'r' [static] |
Referenced by XrdCnsSsi::ApplyLogRec(), XrdCnsLogClient::Run(), and setType().
const char XrdCnsLogRec::lrRmdir = 'D' [static] |
Referenced by XrdCnsSsi::ApplyLogRec(), XrdCnsLogClient::Run(), and setType().
const char XrdCnsLogRec::lrSpace = 'S' [static] |
Referenced by XrdCnsSsi::List(), XrdCnsLogClient::Run(), XrdCnsSsi::Updt(), and XrdCnsSsiApplyS().
const char XrdCnsLogRec::lrTOD = 'T' [static] |
const int XrdCnsLogRec::maxClients = 4 [static] |
Referenced by XrdCnsLog::List().
const int XrdCnsLogRec::MaxSize = sizeof(Arg) [static] |
const int XrdCnsLogRec::MinSize = sizeof(Ctl) [static] |
Referenced by XrdCnsLogFile::Add(), XrdCnsLogFile::Eol(), and XrdCnsLogFile::getRec().
XrdCnsLogRec* XrdCnsLogRec::Next [private] |
const int XrdCnsLogRec::OffDone = offsetof(LogRec, Hdr.Done) [static] |
Referenced by XrdCnsLogFile::Commit().
XrdSysMutex XrdCnsLogRec::qMutex [static, private] |
XrdSysSemaphore XrdCnsLogRec::qSem [static, private] |
LogRec XrdCnsLogRec::Rec [private] |
int XrdCnsLogRec::Running = 0 [static, private] |
const long XrdCnsLogRec::tBase = 1248126834L [static] |
Referenced by XrdCnsSsi::ApplyLog(), XrdCnsSsi::List(), and setTime().
1.7.3