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