xrootd
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | List of all members
XrdCnsLogRec Class Reference

#include <XrdCnsLogRec.hh>

Collaboration diagram for XrdCnsLogRec:
Collaboration graph
[legend]

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 XrdCnsLogRecAlloc ()
 
static XrdCnsLogRecGet (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

XrdCnsLogRecNext
 
LogRec Rec
 

Static Private Attributes

static XrdSysSemaphore qSem
 
static XrdSysMutex qMutex
 
static XrdSysMutex fMutex
 
static XrdCnsLogRecfreeRec = 0
 
static XrdCnsLogRecfrstRec = 0
 
static XrdCnsLogReclastRec = 0
 
static int Running = 0
 

Constructor & Destructor Documentation

XrdCnsLogRec::XrdCnsLogRec ( const char  rType = 0)
inline
XrdCnsLogRec::~XrdCnsLogRec ( )
inline

Member Function Documentation

XrdCnsLogRec * XrdCnsLogRec::Alloc ( )
static
const char* XrdCnsLogRec::Data ( )
inline

References XrdCnsLogRec::LogRec::Data, and Rec.

Referenced by XrdCnsLogClient::Run().

int XrdCnsLogRec::DLen ( )
inline
int XrdCnsLogRec::Done ( int  iPos)
inline
XrdCnsLogRec * XrdCnsLogRec::Get ( char &  lrType)
static
int XrdCnsLogRec::L1sz ( )
inline
int XrdCnsLogRec::L2sz ( )
inline
const char* XrdCnsLogRec::Lfn1 ( )
inline
const char* XrdCnsLogRec::Lfn1 ( int &  Len)
inline
const char* XrdCnsLogRec::Lfn2 ( )
inline
mode_t XrdCnsLogRec::Mode ( )
inline
void XrdCnsLogRec::Queue ( )
char* XrdCnsLogRec::Record ( )
inline

References Rec.

Referenced by XrdCnsLogFile::Add(), and XrdCnsLogFile::getRec().

void XrdCnsLogRec::Recycle ( )
int XrdCnsLogRec::setData ( const char *  dP1,
const char *  dP2 = 0 
)
void XrdCnsLogRec::setDone ( int  iPos,
char  Val = 1 
)
inline
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
void XrdCnsLogRec::setSize ( long long  Size)
inline
void XrdCnsLogRec::setSpace ( char  sCode)
inline
void XrdCnsLogRec::setTime ( long  TOD = time(0))
inline
void XrdCnsLogRec::setType ( const char  evt)
inline
int XrdCnsLogRec::setType ( const char *  evt)

References lrClosew, lrCreate, lrMkdir, lrMv, lrRm, lrRmdir, and setType().

Referenced by setType().

long long XrdCnsLogRec::Size ( )
inline
char XrdCnsLogRec::Space ( )
inline
char XrdCnsLogRec::Type ( )
inline

Member Data Documentation

const int XrdCnsLogRec::FixDLen = offsetof(Arg, lfn)
static
XrdSysMutex XrdCnsLogRec::fMutex
staticprivate

Referenced by Alloc(), and Recycle().

XrdCnsLogRec * XrdCnsLogRec::freeRec = 0
staticprivate

Referenced by Alloc(), and Recycle().

XrdCnsLogRec * XrdCnsLogRec::frstRec = 0
staticprivate

Referenced by Get(), and Queue().

const char * XrdCnsLogRec::IArg = "I755 -1 "
static
const char * XrdCnsLogRec::iArg = "i644 0 "
static
XrdCnsLogRec * XrdCnsLogRec::lastRec = 0
staticprivate

Referenced by Get(), and Queue().

const char XrdCnsLogRec::lrClosew = 't'
static
const char XrdCnsLogRec::lrCreate = 'c'
static
const char XrdCnsLogRec::lrEOL = 'E'
static
const char XrdCnsLogRec::lrInvD = 'I'
static
const char XrdCnsLogRec::lrInvF = 'i'
static

Referenced by XrdCnsLogClient::Run().

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
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

Referenced by Alloc(), Get(), Queue(), and Recycle().

const int XrdCnsLogRec::OffDone = offsetof(LogRec, Hdr.Done)
static

Referenced by XrdCnsLogFile::Commit().

XrdSysMutex XrdCnsLogRec::qMutex
staticprivate

Referenced by Get(), and Queue().

XrdSysSemaphore XrdCnsLogRec::qSem
staticprivate

Referenced by Get(), and Queue().

LogRec XrdCnsLogRec::Rec
private
int XrdCnsLogRec::Running = 0
staticprivate

Referenced by Get(), and Queue().

const long XrdCnsLogRec::tBase = 1248126834L
static

The documentation for this class was generated from the following files: