20 #include <unordered_map>
23 #include "UObject_SK.h"
24 #include "SMInterface.h"
25 #include "SharedMemory.h"
26 #include "extensions/Extensions.h"
90 const std::string& prefix =
"rrd" );
94 static std::shared_ptr<RRDServer>
init_rrdstorage(
int argc,
const char*
const* argv,
96 const std::string& prefix =
"rrd" );
99 static void help_print(
int argc,
const char*
const* argv );
101 inline std::shared_ptr<LogAgregator> getLogAggregator()
105 inline std::shared_ptr<DebugStream> log()
115 virtual void askSensors( UniversalIO::UIOCommand cmd )
override;
120 void initRRD( xmlNode* cnode,
int tmID );
121 virtual void step()
override;
123 std::shared_ptr<SMInterface> shm;
132 sid(
id), dsname(dsname), value(defval) {}
140 typedef std::unordered_map<uniset::ObjectId, std::shared_ptr<DSInfo>> DSMap;
141 typedef std::vector<std::shared_ptr<DSInfo>> DSList;
145 std::string filename;
151 RRDInfo(
const std::string& fname,
long tmID,
long sec,
const DSList& lst );
154 typedef std::vector<RRDInfo> RRDList;
Definition: UObject_SK.h:30
Definition: RRDServer.h:87
static std::shared_ptr< RRDServer > init_rrdstorage(int argc, const char *const *argv, uniset::ObjectId shmID, const std::shared_ptr< SharedMemory > &ic=nullptr, const std::string &prefix="rrd")
Definition: RRDServer.cc:292
const size_t RRD_MAX_DSNAME_LEN
Definition: RRDServer.h:110
static void help_print(int argc, const char *const *argv)
Definition: RRDServer.cc:268
Definition: MessageType.h:127
Definition: MessageType.h:171
Definition: MessageType.h:214
Definition: CommonEventLoop.h:15
long ObjectId
Definition: UniSetTypes_i.idl:30
Definition: RRDServer.h:126
Definition: RRDServer.h:144