00001 #ifndef __SSI_STATS_H__ 00002 #define __SSI_STATS_H__ 00003 /******************************************************************************/ 00004 /* X r d S s i S t a t s . h h */ 00005 /* */ 00006 /* (c) 2018 by the Board of Trustees of the Leland Stanford, Jr., University */ 00007 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 00008 /* DE-AC02-76-SFO0515 with the Department of Energy */ 00009 /* */ 00010 /* This file is part of the XRootD software suite. */ 00011 /* */ 00012 /* XRootD is free software: you can redistribute it and/or modify it under */ 00013 /* the terms of the GNU Lesser General Public License as published by the */ 00014 /* Free Software Foundation, either version 3 of the License, or (at your */ 00015 /* option) any later version. */ 00016 /* */ 00017 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */ 00018 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */ 00019 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */ 00020 /* License for more details. */ 00021 /* */ 00022 /* You should have received a copy of the GNU Lesser General Public License */ 00023 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */ 00024 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */ 00025 /* */ 00026 /* The copyright holder's institutional names and contributor's names may not */ 00027 /* be used to endorse or promote products derived from this software without */ 00028 /* specific prior written permission of the institution or contributor. */ 00029 /******************************************************************************/ 00030 00031 #include "XrdSys/XrdSysPthread.hh" 00032 #include "XrdOuc/XrdOucStats.hh" 00033 00034 class XrdSfsFileSystem; 00035 class XrdStats; 00036 00037 class XrdSsiStats : public XrdOucStats 00038 { 00039 public: 00040 long long ReqBytes; // Stats: Number of requests bytes total 00041 long long ReqMaxsz; // Stats: Number of requests largest size 00042 long long RspMDBytes; // Stats: Number of metada response bytes 00043 int ReqAborts; // Stats: Number of request aborts 00044 int ReqAlerts; // Stats: Number of request alerts 00045 int ReqBound; // Stats: Number of requests bound 00046 int ReqCancels; // Stats: Number of request Finished()+cancel 00047 int ReqCount; // Stats: Number of requests (total) 00048 int ReqFinForce; // Stats: Number of request Finished()+forced 00049 int ReqFinished; // Stats: Number of request Finished() 00050 int ReqGets; // Stats: Number of requests -> GetRequest() 00051 int ReqPrepErrs; // Stats: Number of request prepare errors 00052 int ReqProcs; // Stats: Number of requests -> ProcessRequest() 00053 int ReqRedir; // Stats: Number of request redirects 00054 int ReqRelBuf; // Stats: Number of request -> RelRequestBuff() 00055 int ReqStalls; // Stats: Number of request stalls 00056 int RspBad; // Stats: Number of invalid responses 00057 int RspCallBK; // Stats: Number of request callbacks 00058 int RspData; // Stats: Number of data responses 00059 int RspErrs; // Stats: Number of error responses 00060 int RspFile; // Stats: Number of file responses 00061 int RspReady; // Stats: Number of ready responses 00062 int RspStrm; // Stats: Number of stream responses 00063 int RspUnRdy; // Stats: Number of unready responses 00064 int SsiErrs; // Stats: Number of SSI detected errors 00065 int ResAdds; // Stats: Number of resource additions 00066 int ResRems; // Stats: Number of resource removals 00067 00068 void setFS(XrdSfsFileSystem *fsp) {fsP = fsp;} 00069 00070 int Stats(char *buff, int blen); 00071 00072 XrdSsiStats(); 00073 ~XrdSsiStats() {} 00074 private: 00075 00076 XrdSfsFileSystem *fsP; 00077 }; 00078 #endif