xrootd
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
XrdOfsEvs Class Reference

#include <XrdOfsEvs.hh>

Collaboration diagram for XrdOfsEvs:
Collaboration graph
[legend]

Public Types

enum  Event {
  All = 0x7fffff00, None = 0x00000000, Chmod = 0x00000100, Closer = 0x00000201,
  Closew = 0x00000402, Close = 0x00000600, Create = 0x00000803, Fwrite = 0x00001004,
  Mkdir = 0x00002005, Mv = 0x00004006, Openr = 0x00008007, Openw = 0x00010008,
  Open = 0x00018000, Rm = 0x00020009, Rmdir = 0x0004000a, Trunc = 0x0008000b,
  nCount = 12, Mask = 0X000000ff, enMask = 0x7fffff00
}

Public Member Functions

int Enabled (Event theEvents)
int maxSmsg ()
int maxLmsg ()
void Notify (Event eNum, XrdOfsEvsInfo &Info)
const char * Prog ()
void sendEvents (void)
int Start (XrdSysError *eobj)
 XrdOfsEvs (Event theEvents, const char *Target, int minq=90, int maxq=10)
 ~XrdOfsEvs ()

Static Public Member Functions

static int Parse (XrdSysError &Eroute, Event eNum, char *mText)

Static Public Attributes

static const int minMsgSize = 1360
static const int maxMsgSize = 2384

Private Member Functions

const char * eName (int eNum)
int Feed (const char *data, int dlen)
XrdOfsEvsMsggetMsg (int bigmsg)
void retMsg (XrdOfsEvsMsg *tp)

Private Attributes

pthread_t tid
char * theTarget
Event enEvents
XrdSysErroreDest
XrdOucProgtheProg
XrdSysMutex qMut
XrdSysSemaphore qSem
XrdOfsEvsMsgmsgFirst
XrdOfsEvsMsgmsgLast
XrdSysMutex fMut
XrdOfsEvsMsgmsgFreeMax
XrdOfsEvsMsgmsgFreeMin
int endIT
int msgFD
int numMax
int maxMax
int numMin
int maxMin

Static Private Attributes

static XrdOfsEvsFormat MsgFmt [XrdOfsEvs::nCount]

Member Enumeration Documentation

Enumerator:
All 
None 
Chmod 
Closer 
Closew 
Close 
Create 
Fwrite 
Mkdir 
Mv 
Openr 
Openw 
Open 
Rm 
Rmdir 
Trunc 
nCount 
Mask 
enMask 

Constructor & Destructor Documentation

XrdOfsEvs::XrdOfsEvs ( Event  theEvents,
const char *  Target,
int  minq = 90,
int  maxq = 10 
)
XrdOfsEvs::~XrdOfsEvs ( )

Member Function Documentation

int XrdOfsEvs::Enabled ( Event  theEvents)
inline
const char * XrdOfsEvs::eName ( int  eNum)
private

References Mask, and nCount.

Referenced by Notify().

int XrdOfsEvs::Feed ( const char *  data,
int  dlen 
)
private

References eDest, XrdSysError::Emsg(), msgFD, theTarget, and write().

Referenced by sendEvents().

XrdOfsEvsMsg * XrdOfsEvs::getMsg ( int  bigmsg)
private
int XrdOfsEvs::maxLmsg ( )
inline

References maxMax.

Referenced by XrdOfs::Config_Display().

int XrdOfsEvs::maxSmsg ( )
inline

References maxMin.

Referenced by XrdOfs::Config_Display().

void XrdOfsEvs::Notify ( Event  eNum,
XrdOfsEvsInfo Info 
)
int XrdOfsEvs::Parse ( XrdSysError Eroute,
XrdOfsEvs::Event  eNum,
char *  mText 
)
static
const char* XrdOfsEvs::Prog ( )
inline

References theTarget.

Referenced by XrdOfs::Config_Display().

void XrdOfsEvs::retMsg ( XrdOfsEvsMsg tp)
private
void XrdOfsEvs::sendEvents ( void  )
int XrdOfsEvs::Start ( XrdSysError eobj)

Member Data Documentation

XrdSysError* XrdOfsEvs::eDest
private

Referenced by Feed(), Notify(), Start(), and XrdOfsEvs().

int XrdOfsEvs::endIT
private

Referenced by sendEvents(), XrdOfsEvs(), and ~XrdOfsEvs().

Event XrdOfsEvs::enEvents
private

Referenced by Enabled(), and XrdOfsEvs().

XrdSysMutex XrdOfsEvs::fMut
private

Referenced by getMsg(), retMsg(), and ~XrdOfsEvs().

int XrdOfsEvs::maxMax
private

Referenced by getMsg(), maxLmsg(), retMsg(), and XrdOfsEvs().

int XrdOfsEvs::maxMin
private

Referenced by getMsg(), maxSmsg(), retMsg(), and XrdOfsEvs().

const int XrdOfsEvs::maxMsgSize = 2384
static

Referenced by getMsg(), and Notify().

const int XrdOfsEvs::minMsgSize = 1360
static

Referenced by getMsg(), and Notify().

int XrdOfsEvs::msgFD
private

Referenced by Feed(), Start(), XrdOfsEvs(), and ~XrdOfsEvs().

XrdOfsEvsMsg* XrdOfsEvs::msgFirst
private
XrdOfsEvsFormat XrdOfsEvs::MsgFmt
staticprivate

Referenced by Notify(), Parse(), and XrdOfsEvs().

XrdOfsEvsMsg* XrdOfsEvs::msgFreeMax
private

Referenced by getMsg(), retMsg(), XrdOfsEvs(), and ~XrdOfsEvs().

XrdOfsEvsMsg* XrdOfsEvs::msgFreeMin
private

Referenced by getMsg(), retMsg(), XrdOfsEvs(), and ~XrdOfsEvs().

XrdOfsEvsMsg* XrdOfsEvs::msgLast
private

Referenced by Notify(), sendEvents(), and XrdOfsEvs().

int XrdOfsEvs::numMax
private

Referenced by getMsg(), retMsg(), and XrdOfsEvs().

int XrdOfsEvs::numMin
private

Referenced by getMsg(), retMsg(), and XrdOfsEvs().

XrdSysMutex XrdOfsEvs::qMut
private

Referenced by Notify(), sendEvents(), and ~XrdOfsEvs().

XrdSysSemaphore XrdOfsEvs::qSem
private

Referenced by Notify(), and sendEvents().

XrdOucProg* XrdOfsEvs::theProg
private
char* XrdOfsEvs::theTarget
private

Referenced by Feed(), Prog(), Start(), XrdOfsEvs(), and ~XrdOfsEvs().

pthread_t XrdOfsEvs::tid
private

Referenced by Start(), XrdOfsEvs(), and ~XrdOfsEvs().


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