|
xrootd
|
#include <XrdStats.hh>

Public Member Functions | |
| void | Report (char **Dest=0, int iVal=600, int Opts=0) |
| void | Lock () |
| const char * | Stats (int opts) |
| void | UnLock () |
| XrdStats (const char *hn, int port, const char *in, const char *pn) | |
| ~XrdStats () | |
Private Member Functions | |
| int | InfoStats (char *buff, int blen, int dosync=0) |
| int | ProcStats (char *buff, int blen, int dosync=0) |
Private Attributes | |
| XrdSysMutex | statsMutex |
| char * | buff |
| int | blen |
| int | Hlen |
| char * | Head |
| const char * | myHost |
| const char * | myName |
| int | myPort |
Static Private Attributes | |
| static long | tBoot = static_cast<long>(time(0)) |
| XrdStats::XrdStats | ( | const char * | hn, |
| int | port, | ||
| const char * | in, | ||
| const char * | pn | ||
| ) |
References blen, buff, Head, Hlen, myHost, myName, myPort, XrdMonCtrCollector::port, tBoot, and XrdVSTRING.
| XrdStats::~XrdStats | ( | ) | [inline] |
References buff.
| int XrdStats::InfoStats | ( | char * | buff, |
| int | blen, | ||
| int | dosync = 0 |
||
| ) | [private] |
| void XrdStats::Lock | ( | ) | [inline] |
References XrdSysMutex::Lock(), and statsMutex.
Referenced by Report(), and XrdXrootdStats::Stats().
| int XrdStats::ProcStats | ( | char * | buff, |
| int | blen, | ||
| int | dosync = 0 |
||
| ) | [private] |
| void XrdStats::Report | ( | char ** | Dest = 0, |
| int | iVal = 600, |
||
| int | Opts = 0 |
||
| ) |
References XrdScheduler::Active(), Lock(), XrdMpx::Opts, XrdNetMsg::Send(), Stats(), UnLock(), XRD_STATS_ALL, XRD_STATS_SYNC, XRD_STATS_SYNCA, and XrdLog.
Referenced by XrdStatsJob::DoIt(), and XrdConfig::Setup().
| const char * XrdStats::Stats | ( | int | opts | ) |
References blen, buff, Head, Hlen, InfoStats(), memalign, ProcStats(), XrdSysTimer::Report(), XrdSysTimer::Reset(), snprintf, XrdProtLoad::Stats(), XrdScheduler::Stats(), XrdBuffManager::Stats(), strlcpy(), XRD_STATS_BUFF, XRD_STATS_INFO, XRD_STATS_LINK, XRD_STATS_POLL, XRD_STATS_PROC, XRD_STATS_PROT, XRD_STATS_SCHD, XRD_STATS_SGEN, XRD_STATS_SYNC, and XrdVSTRING.
Referenced by Report(), and XrdXrootdStats::Stats().
| void XrdStats::UnLock | ( | ) | [inline] |
References statsMutex, and XrdSysMutex::UnLock().
Referenced by Report(), and XrdXrootdStats::Stats().
int XrdStats::blen [private] |
Referenced by Stats(), and XrdStats().
char* XrdStats::buff [private] |
Referenced by Stats(), XrdStats(), and ~XrdStats().
char* XrdStats::Head [private] |
Referenced by Stats(), and XrdStats().
int XrdStats::Hlen [private] |
Referenced by Stats(), and XrdStats().
const char* XrdStats::myHost [private] |
Referenced by InfoStats(), and XrdStats().
const char* XrdStats::myName [private] |
Referenced by InfoStats(), and XrdStats().
int XrdStats::myPort [private] |
Referenced by InfoStats(), and XrdStats().
XrdSysMutex XrdStats::statsMutex [private] |
long XrdStats::tBoot = static_cast<long>(time(0)) [static, private] |
Referenced by XrdStats().
1.7.3