XRootD
XrdSsiStats.hh
Go to the documentation of this file.
1 #ifndef __SSI_STATS_H__
2 #define __SSI_STATS_H__
3 /******************************************************************************/
4 /* X r d S s i S t a t s . h h */
5 /* */
6 /* (c) 2018 by the Board of Trustees of the Leland Stanford, Jr., University */
7 /* Produced by Andrew Hanushevsky for Stanford University under contract */
8 /* DE-AC02-76-SFO0515 with the Department of Energy */
9 /* */
10 /* This file is part of the XRootD software suite. */
11 /* */
12 /* XRootD is free software: you can redistribute it and/or modify it under */
13 /* the terms of the GNU Lesser General Public License as published by the */
14 /* Free Software Foundation, either version 3 of the License, or (at your */
15 /* option) any later version. */
16 /* */
17 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */
18 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
19 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
20 /* License for more details. */
21 /* */
22 /* You should have received a copy of the GNU Lesser General Public License */
23 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
24 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
25 /* */
26 /* The copyright holder's institutional names and contributor's names may not */
27 /* be used to endorse or promote products derived from this software without */
28 /* specific prior written permission of the institution or contributor. */
29 /******************************************************************************/
30 
31 #include "XrdSys/XrdSysPthread.hh"
32 #include "XrdOuc/XrdOucStats.hh"
33 
34 class XrdSfsFileSystem;
35 class XrdStats;
36 
37 class XrdSsiStats : public XrdOucStats
38 {
39 public:
40 long long ReqBytes; // Stats: Number of requests bytes total
41 long long ReqMaxsz; // Stats: Number of requests largest size
42 long long RspMDBytes; // Stats: Number of metada response bytes
43 int ReqAborts; // Stats: Number of request aborts
44 int ReqAlerts; // Stats: Number of request alerts
45 int ReqBound; // Stats: Number of requests bound
46 int ReqCancels; // Stats: Number of request Finished()+cancel
47 int ReqCount; // Stats: Number of requests (total)
48 int ReqFinForce; // Stats: Number of request Finished()+forced
49 int ReqFinished; // Stats: Number of request Finished()
50 int ReqGets; // Stats: Number of requests -> GetRequest()
51 int ReqPrepErrs; // Stats: Number of request prepare errors
52 int ReqProcs; // Stats: Number of requests -> ProcessRequest()
53 int ReqRedir; // Stats: Number of request redirects
54 int ReqRelBuf; // Stats: Number of request -> RelRequestBuff()
55 int ReqStalls; // Stats: Number of request stalls
56 int RspBad; // Stats: Number of invalid responses
57 int RspCallBK; // Stats: Number of request callbacks
58 int RspData; // Stats: Number of data responses
59 int RspErrs; // Stats: Number of error responses
60 int RspFile; // Stats: Number of file responses
61 int RspReady; // Stats: Number of ready responses
62 int RspStrm; // Stats: Number of stream responses
63 int RspUnRdy; // Stats: Number of unready responses
64 int SsiErrs; // Stats: Number of SSI detected errors
65 int ResAdds; // Stats: Number of resource additions
66 int ResRems; // Stats: Number of resource removals
67 
68 void setFS(XrdSfsFileSystem *fsp) {fsP = fsp;}
69 
70 int Stats(char *buff, int blen);
71 
72  XrdSsiStats();
74 private:
75 
76 XrdSfsFileSystem *fsP;
77 };
78 #endif
int Stats(char *buff, int blen)
Definition: XrdSsiStats.cc:87
long long ReqMaxsz
Definition: XrdSsiStats.hh:41
long long RspMDBytes
Definition: XrdSsiStats.hh:42
void setFS(XrdSfsFileSystem *fsp)
Definition: XrdSsiStats.hh:68
long long ReqBytes
Definition: XrdSsiStats.hh:40