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::vector<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::vector<RRDInfo> RRDList;
164 #endif // _RRDServer_H_ Definition: CallbackTimer.h:29
Definition: RRDServer.h:124
Definition: MessageType.h:168
const size_t RRD_MAX_DSNAME_LEN
Definition: RRDServer.h:109
Definition: MessageType.h:124
static void help_print(int argc, const char *const *argv)
Definition: RRDServer.cc:268
Definition: RRDServer.h:84
Definition: MessageType.h:211
Definition: UObject_SK.h:28
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
long ObjectId
Definition: UniSetTypes_i.idl:30
Definition: RRDServer.h:142