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
 
static const char * iArg
 

Private Attributes

XrdCnsLogRecNext
 
LogRec Rec
 

Static Private Attributes

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

Constructor & Destructor Documentation

◆ XrdCnsLogRec()

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

◆ ~XrdCnsLogRec()

XrdCnsLogRec::~XrdCnsLogRec ( )
inline

Member Function Documentation

◆ Alloc()

static XrdCnsLogRec* XrdCnsLogRec::Alloc ( )
static

◆ Data()

const char* XrdCnsLogRec::Data ( )
inline

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

◆ DLen()

int XrdCnsLogRec::DLen ( )
inline

◆ Done()

int XrdCnsLogRec::Done ( int  iPos)
inline

◆ Get()

static XrdCnsLogRec* XrdCnsLogRec::Get ( char &  lrType)
static

◆ L1sz()

int XrdCnsLogRec::L1sz ( )
inline

◆ L2sz()

int XrdCnsLogRec::L2sz ( )
inline

◆ Lfn1() [1/2]

const char* XrdCnsLogRec::Lfn1 ( )
inline

◆ Lfn1() [2/2]

const char* XrdCnsLogRec::Lfn1 ( int &  Len)
inline

◆ Lfn2()

const char* XrdCnsLogRec::Lfn2 ( )
inline

◆ Mode()

mode_t XrdCnsLogRec::Mode ( )
inline

◆ Queue()

void XrdCnsLogRec::Queue ( )

◆ Record()

char* XrdCnsLogRec::Record ( )
inline

References Rec.

◆ Recycle()

void XrdCnsLogRec::Recycle ( )

◆ setData()

int XrdCnsLogRec::setData ( const char *  dP1,
const char *  dP2 = 0 
)

◆ setDone()

void XrdCnsLogRec::setDone ( int  iPos,
char  Val = 1 
)
inline

◆ setLen()

int XrdCnsLogRec::setLen ( )
inline

◆ setLfn1()

int XrdCnsLogRec::setLfn1 ( const char *  lfn)
inline

◆ setLfn2()

int XrdCnsLogRec::setLfn2 ( const char *  lfn)
inline

◆ setMode()

void XrdCnsLogRec::setMode ( mode_t  Mode)
inline

◆ setMount()

void XrdCnsLogRec::setMount ( char  mCode)
inline

◆ setSize()

void XrdCnsLogRec::setSize ( long long  Size)
inline

◆ setSpace()

void XrdCnsLogRec::setSpace ( char  sCode)
inline

◆ setTime()

void XrdCnsLogRec::setTime ( long  TOD = time(0))
inline

◆ setType() [1/2]

void XrdCnsLogRec::setType ( const char  evt)
inline

◆ setType() [2/2]

int XrdCnsLogRec::setType ( const char *  evt)

◆ Size()

long long XrdCnsLogRec::Size ( )
inline

◆ Space()

char XrdCnsLogRec::Space ( )
inline

◆ Type()

char XrdCnsLogRec::Type ( )
inline

Member Data Documentation

◆ FixDLen

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

Referenced by setLen(), and XrdCnsLogRec().

◆ fMutex

XrdSysMutex XrdCnsLogRec::fMutex
staticprivate

◆ freeRec

XrdCnsLogRec* XrdCnsLogRec::freeRec
staticprivate

◆ frstRec

XrdCnsLogRec* XrdCnsLogRec::frstRec
staticprivate

◆ IArg

const char* XrdCnsLogRec::IArg
static

◆ iArg

const char* XrdCnsLogRec::iArg
static

◆ lastRec

XrdCnsLogRec* XrdCnsLogRec::lastRec
staticprivate

◆ lrClosew

const char XrdCnsLogRec::lrClosew = 't'
static

◆ lrCreate

const char XrdCnsLogRec::lrCreate = 'c'
static

◆ lrEOL

const char XrdCnsLogRec::lrEOL = 'E'
static

Referenced by XrdCnsLogRec().

◆ lrInvD

const char XrdCnsLogRec::lrInvD = 'I'
static

◆ lrInvF

const char XrdCnsLogRec::lrInvF = 'i'
static

◆ lrMkdir

const char XrdCnsLogRec::lrMkdir = 'd'
static

◆ lrMount

const char XrdCnsLogRec::lrMount = 'M'
static

◆ lrMv

const char XrdCnsLogRec::lrMv = 'm'
static

◆ lrRm

const char XrdCnsLogRec::lrRm = 'r'
static

◆ lrRmdir

const char XrdCnsLogRec::lrRmdir = 'D'
static

◆ lrSpace

const char XrdCnsLogRec::lrSpace = 'S'
static

◆ lrTOD

const char XrdCnsLogRec::lrTOD = 'T'
static

Referenced by XrdCnsLogRec().

◆ maxClients

const int XrdCnsLogRec::maxClients = 4
static

◆ MaxSize

const int XrdCnsLogRec::MaxSize = sizeof(Arg)
static

◆ MinSize

const int XrdCnsLogRec::MinSize = sizeof(Ctl)
static

◆ Next

XrdCnsLogRec* XrdCnsLogRec::Next
private

◆ OffDone

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

◆ qMutex

XrdSysMutex XrdCnsLogRec::qMutex
staticprivate

◆ qSem

XrdSysSemaphore XrdCnsLogRec::qSem
staticprivate

◆ Rec

LogRec XrdCnsLogRec::Rec
private

◆ Running

int XrdCnsLogRec::Running
staticprivate

◆ tBase

const long XrdCnsLogRec::tBase = 1248126834L
static

Referenced by setTime().


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