#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 |
static const char * | iArg |
Private Attributes | |
XrdCnsLogRec * | Next |
LogRec | Rec |
Static Private Attributes | |
static XrdSysSemaphore | qSem |
static XrdSysMutex | qMutex |
static XrdSysMutex | fMutex |
static XrdCnsLogRec * | freeRec |
static XrdCnsLogRec * | frstRec |
static XrdCnsLogRec * | lastRec |
static int | Running |
XrdCnsLogRec::XrdCnsLogRec | ( | const char | rType = 0 |
) | [inline] |
XrdCnsLogRec::~XrdCnsLogRec | ( | ) | [inline] |
static XrdCnsLogRec* XrdCnsLogRec::Alloc | ( | ) | [static] |
const char* XrdCnsLogRec::Data | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, and Rec.
int XrdCnsLogRec::DLen | ( | ) | [inline] |
References XrdCnsLogRec::Ctl::dataLen, XrdCnsLogRec::LogRec::Hdr, and Rec.
int XrdCnsLogRec::Done | ( | int | iPos | ) | [inline] |
References XrdCnsLogRec::Ctl::Done, XrdCnsLogRec::LogRec::Hdr, and Rec.
static XrdCnsLogRec* XrdCnsLogRec::Get | ( | char & | lrType | ) | [static] |
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 | ( | int & | Len | ) | [inline] |
const char* XrdCnsLogRec::Lfn1 | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, XrdCnsLogRec::Arg::lfn, and Rec.
const char* XrdCnsLogRec::Lfn2 | ( | ) | [inline] |
mode_t XrdCnsLogRec::Mode | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Hdr, XrdCnsLogRec::Ctl::Mode, and Rec.
void XrdCnsLogRec::Queue | ( | ) |
char* XrdCnsLogRec::Record | ( | ) | [inline] |
References Rec.
void XrdCnsLogRec::Recycle | ( | ) |
int XrdCnsLogRec::setData | ( | const char * | dP1, | |
const char * | dP2 = 0 | |||
) |
void XrdCnsLogRec::setDone | ( | int | iPos, | |
char | Val = 1 | |||
) | [inline] |
References XrdCnsLogRec::Ctl::Done, XrdCnsLogRec::LogRec::Hdr, and Rec.
int XrdCnsLogRec::setLen | ( | ) | [inline] |
int XrdCnsLogRec::setLfn1 | ( | const char * | lfn | ) | [inline] |
int XrdCnsLogRec::setLfn2 | ( | const char * | lfn | ) | [inline] |
void XrdCnsLogRec::setMode | ( | mode_t | Mode | ) | [inline] |
void XrdCnsLogRec::setMount | ( | char | mCode | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, XrdCnsLogRec::Arg::Mount, and Rec.
void XrdCnsLogRec::setSize | ( | long long | Size | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, XrdCnsLogRec::LogRec::Hdr, Rec, XrdCnsLogRec::Ctl::Size, and XrdCnsLogRec::Arg::SorT.
Referenced by setLfn2().
void XrdCnsLogRec::setSpace | ( | char | sCode | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, Rec, and XrdCnsLogRec::Arg::Space.
void XrdCnsLogRec::setTime | ( | long | TOD = time(0) |
) | [inline] |
References XrdCnsLogRec::LogRec::Data, 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.
long long XrdCnsLogRec::Size | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Hdr, Rec, and XrdCnsLogRec::Ctl::Size.
char XrdCnsLogRec::Space | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, Rec, and XrdCnsLogRec::Arg::Space.
char XrdCnsLogRec::Type | ( | ) | [inline] |
References XrdCnsLogRec::LogRec::Data, Rec, and XrdCnsLogRec::Arg::Type.
const int XrdCnsLogRec::FixDLen = offsetof(Arg, lfn) [static] |
Referenced by setLen(), and XrdCnsLogRec().
XrdSysMutex XrdCnsLogRec::fMutex [static, private] |
XrdCnsLogRec* XrdCnsLogRec::freeRec [static, private] |
XrdCnsLogRec* XrdCnsLogRec::frstRec [static, private] |
const char* XrdCnsLogRec::iArg [static] |
const char* XrdCnsLogRec::IArg [static] |
XrdCnsLogRec* XrdCnsLogRec::lastRec [static, private] |
const char XrdCnsLogRec::lrClosew = 't' [static] |
const char XrdCnsLogRec::lrCreate = 'c' [static] |
const char XrdCnsLogRec::lrEOL = 'E' [static] |
Referenced by XrdCnsLogRec().
const char XrdCnsLogRec::lrInvD = 'I' [static] |
const char XrdCnsLogRec::lrInvF = 'i' [static] |
const char XrdCnsLogRec::lrMkdir = 'd' [static] |
const char XrdCnsLogRec::lrMount = 'M' [static] |
const char XrdCnsLogRec::lrMv = 'm' [static] |
const char XrdCnsLogRec::lrRm = 'r' [static] |
const char XrdCnsLogRec::lrRmdir = 'D' [static] |
const char XrdCnsLogRec::lrSpace = 'S' [static] |
const char XrdCnsLogRec::lrTOD = 'T' [static] |
Referenced by XrdCnsLogRec().
const int XrdCnsLogRec::maxClients = 4 [static] |
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 [static, private] |
const long XrdCnsLogRec::tBase = 1248126834L [static] |
Referenced by setTime().