#include <XrdOfsStats.hh>
Public Member Functions | |
| void | Add (int &Cntr) |
| void | Dec (int &Cntr) |
| int | Report (char *Buff, int Blen) |
| void | setRole (const char *theRole) |
| XrdOfsStats () | |
| ~XrdOfsStats () | |
Public Attributes | |
| XrdOfsStats::StatsData | Data |
| XrdSysMutex | sdMutex |
Private Attributes | |
| const char * | myRole |
Classes | |
| struct | StatsData |
Definition at line 19 of file XrdOfsStats.hh.
| XrdOfsStats::XrdOfsStats | ( | ) | [inline] |
| XrdOfsStats::~XrdOfsStats | ( | ) | [inline] |
Definition at line 50 of file XrdOfsStats.hh.
| void XrdOfsStats::Add | ( | int & | Cntr | ) | [inline] |
Definition at line 41 of file XrdOfsStats.hh.
References XrdSysMutex::Lock(), sdMutex, and XrdSysMutex::UnLock().
Referenced by XrdOfsHandle::Alloc(), XrdOfsEvr::eventStage(), and XrdOfs::Unpersist().
| void XrdOfsStats::Dec | ( | int & | Cntr | ) | [inline] |
Definition at line 43 of file XrdOfsStats.hh.
References XrdSysMutex::Lock(), sdMutex, and XrdSysMutex::UnLock().
Referenced by XrdOfsHandle::Retire().
| int XrdOfsStats::Report | ( | char * | Buff, | |
| int | Blen | |||
| ) |
Definition at line 23 of file XrdOfsStats.cc.
References Data, XrdSysMutex::Lock(), myRole, XrdOfsStats::StatsData::numDelays, XrdOfsStats::StatsData::numErrors, XrdOfsStats::StatsData::numHandles, XrdOfsStats::StatsData::numOpenP, XrdOfsStats::StatsData::numOpenR, XrdOfsStats::StatsData::numOpenW, XrdOfsStats::StatsData::numRedirect, XrdOfsStats::StatsData::numReplies, XrdOfsStats::StatsData::numSeventER, XrdOfsStats::StatsData::numSeventOK, XrdOfsStats::StatsData::numStarted, XrdOfsStats::StatsData::numUnpsist, sdMutex, sprintf(), and XrdSysMutex::UnLock().
Referenced by XrdOfs::getStats().
| void XrdOfsStats::setRole | ( | const char * | theRole | ) | [inline] |
Definition at line 39 of file XrdOfsStats.hh.
Referenced by Add(), XrdOfsFile::close(), Dec(), XrdOfsFile::open(), and Report().
const char* XrdOfsStats::myRole [private] |
1.5.1