20 #include <unordered_map>
23 #include "UObject_SK.h"
24 #include "SMInterface.h"
25 #include "SharedMemory.h"
26 #include "extensions/Extensions.h"
89 const std::string& prefix =
"rrd" );
93 static std::shared_ptr<RRDServer>
init_rrdstorage(
int argc,
const char*
const* argv,
95 const std::string& prefix =
"rrd" );
98 static void help_print(
int argc,
const char*
const* argv );
100 inline std::shared_ptr<LogAgregator> getLogAggregator()
104 inline std::shared_ptr<DebugStream> log()
114 virtual void askSensors( UniversalIO::UIOCommand cmd )
override;
119 void initRRD( xmlNode* cnode,
int tmID );
120 virtual void step()
override;
122 std::shared_ptr<SMInterface> shm;
131 sid(
id), dsname(dsname), value(defval) {}
139 typedef std::unordered_map<uniset::ObjectId, std::shared_ptr<DSInfo>> DSMap;
140 typedef std::list<std::shared_ptr<DSInfo>> DSList;
144 std::string filename;
150 RRDInfo(
const std::string& fname,
long tmID,
long sec,
const DSList& lst );
153 typedef std::list<RRDInfo> RRDList;
164 #endif // _RRDServer_H_