xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdXrootd
XrdXrootdStats.hh
Go to the documentation of this file.
1
#ifndef __XROOTD_STATS_H__
2
#define __XROOTD_STATS_H__
3
/******************************************************************************/
4
/* */
5
/* X r d X r o o t d S t a t s . h h */
6
/* */
7
/* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
8
/* All Rights Reserved. See XrdInfo.cc for complete License Terms */
9
/* Produced by Andrew Hanushevsky for Stanford University under contract */
10
/* DE-AC03-76-SFO0515 with the Department of Energy */
11
/******************************************************************************/
12
13
#include "
XrdSys/XrdSysPthread.hh
"
14
#include "
XrdOuc/XrdOucStats.hh
"
15
16
class
XrdSfsFileSystem
;
17
class
XrdStats
;
18
class
XrdXrootdResponse
;
19
20
class
XrdXrootdStats
:
public
XrdOucStats
21
{
22
public
:
23
int
Count
;
// Stats: Number of matches
24
int
errorCnt
;
// Stats: Number of errors returned
25
long
long
redirCnt
;
// Stats: Number of redirects
26
int
stallCnt
;
// Stats: Number of stalls
27
int
getfCnt
;
// Stats: Number of getfiles
28
int
putfCnt
;
// Stats: Number of putfiles
29
int
openCnt
;
// Stats: Number of opens
30
long
long
readCnt
;
// Stats: Number of reads
31
long
long
prerCnt
;
// Stats: Number of reads (pre)
32
long
long
writeCnt
;
// Stats: Number of writes
33
int
syncCnt
;
// Stats: Number of sync
34
int
miscCnt
;
// Stats: Number of miscellaneous
35
long
long
AsyncNum
;
// Stats: Number of async ops
36
long
long
AsyncRej
;
// Stats: Number of async rejected
37
long
long
AsyncNow
;
// Stats: Number of async now (not locked)
38
int
AsyncMax
;
// Stats: Number of async max
39
int
Refresh
;
// Stats: Number of refresh requests
40
int
LoginAT
;
// Stats: Number of attempted logins
41
int
LoginAU
;
// Stats: Number of authenticated logins
42
int
LoginUA
;
// Stats: Number of unauthenticated logins
43
int
AuthBad
;
// Stats: Number of authentication failures
44
45
void
setFS
(
XrdSfsFileSystem
*fsp) {
fsP
= fsp;}
46
47
int
Stats
(
char
*buff,
int
blen,
int
do_sync=0);
48
49
int
Stats
(
XrdXrootdResponse
&resp,
const
char
*
opts
);
50
51
XrdXrootdStats
(
XrdStats
*sp);
52
~XrdXrootdStats
() {}
53
private
:
54
55
XrdSfsFileSystem
*
fsP
;
56
XrdStats
*
xstats
;
57
};
58
#endif
Generated by
1.8.1.2