CARMA C++
RrdCollector.h
Go to the documentation of this file.
1 // $Id: RrdCollector.h,v 1.2 2011/07/19 20:53:21 eml Exp $
2 
3 #ifndef SZA_UTIL_RRDCOLLECTORRRD_H
4 #define SZA_UTIL_RRDCOLLECTORRRD_H
5 
16 
17 namespace sza {
18  namespace util {
19 
20  class RrdCollector : public RemoteSensorCoProc {
21  public:
22 
26  RrdCollector(std::string host,
27  std::string rrdName,
28  SystemStatusSubsystemMutex* ms=0,
29  unsigned timeoutIntervalInSeconds=0);
30 
34  virtual ~RrdCollector();
35 
36  protected:
37 
38  // True if we are running on the host where the RRD is located
39 
40  bool isLocal_;
41 
42  // The name of the RRD database
43 
44  std::string rrdName_;
45 
46  // Compile the list of communication/responses needed for
47  // retrieving the device status from the remote server
48 
49  void compileGetDeviceStatusStateMachine();
50 
51  // Assemble the command string to be issued
52 
53  virtual std::string getCommandString();
54 
55  // Define what it means to parse the return message
56 
57  virtual void processDeviceStatus();
58 
59  void writeMonitorPoints();
60 
61  }; // End class RrdCollector
62 
63  } // End namespace util
64 } // End namespace sza
65 
66 
67 
68 #endif // End #ifndef SZA_UTIL_RRDCOLLECTORRRD_H
Tagged: Mon Jul 19 14:47:35 PDT 2004.