xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

nfsmeter.h
Go to the documentation of this file.
1 //
2 //
3 // This file may be distributed under terms of the GPL
4 //
5 
6 #ifndef _NFSMETER_H_
7 #define _NFSMETER_H_
8 
9 #include "fieldmetergraph.h"
10 #include "xosview.h"
11 #include "timer.h"
12 
13 
14 class NFSMeter : public FieldMeterGraph {
15 public:
16  NFSMeter(
17  XOSView *parent,
18  const char *name,
19  int nfields,
20  const char *files,
21  const char *statfile);
22  ~NFSMeter( void );
23 
24  const char *name( void ) const { return _statname; }
25  void checkResources( void );
26  void starttimer(void) { return _timer.start(); };
27  void stoptimer(void) { return _timer.stop(); };
28  double usecs(void) { return _timer.report_usecs(); };
29 
30 protected:
31  const char *_statname;
32  const char *_statfile;
33 
34 private:
36 
37 };
38 
39 class NFSStats : public NFSMeter {
40 public:
41  NFSStats(XOSView *parent);
42  ~NFSStats(void);
43 
44  void checkevent( void );
45 
46  void checkResources( void );
47 private:
49 };
50 
51 class NFSDStats : public NFSMeter {
52 public:
53  NFSDStats(XOSView *parent);
54  ~NFSDStats(void);
55 
56  void checkevent( void );
57 
58  void checkResources( void );
59 
60 protected:
61  float maxpackets_;
62 
63 private:
65 };
66 
67 #endif
void checkevent(void)
Definition: nfsmeter.cc:61
unsigned long _lastNetCnt
Definition: nfsmeter.h:64
unsigned long _lastBad
Definition: nfsmeter.h:64
unsigned long _lastUdp
Definition: nfsmeter.h:64
float maxpackets_
Definition: nfsmeter.h:61
~NFSDStats(void)
Definition: nfsmeter.cc:42
NFSDStats(XOSView *parent)
Definition: nfsmeter.cc:37
void checkResources(void)
Definition: nfsmeter.cc:45
unsigned long _lastTcp
Definition: nfsmeter.h:64
Timer _timer
Definition: nfsmeter.h:35
const char * _statfile
Definition: nfsmeter.h:32
double usecs(void)
Definition: nfsmeter.h:28
void stoptimer(void)
Definition: nfsmeter.h:27
void starttimer(void)
Definition: nfsmeter.h:26
~NFSMeter(void)
Definition: nfsmeter.cc:30
const char * _statname
Definition: nfsmeter.h:28
NFSMeter(XOSView *parent, const char *name, int nfields, const char *files, const char *statfile)
Definition: nfsmeter.cc:23
void checkResources(void)
Definition: nfsmeter.cc:33
const char * name(void) const
Definition: nfsmeter.h:24
NFSStats(XOSView *parent)
Definition: nfsmeter.cc:128
~NFSStats(void)
Definition: nfsmeter.cc:133
unsigned long _lastretrns
Definition: nfsmeter.h:48
unsigned long _lastcalls
Definition: nfsmeter.h:48
unsigned long _lastauthrefresh
Definition: nfsmeter.h:48
void checkevent(void)
Definition: nfsmeter.cc:151
void checkResources(void)
Definition: nfsmeter.cc:136
Definition: timer.h:22
double report_usecs(void) const
Definition: timer.h:32
void start(void)
Definition: timer.h:27
void stop(void)
Definition: timer.h:28