23 #ifndef _PLUGINS_MONGORRD_MONGORRD_THREAD_H_ 24 #define _PLUGINS_MONGORRD_MONGORRD_THREAD_H_ 26 #include <aspect/clock.h> 27 #include <aspect/configurable.h> 28 #include <aspect/logging.h> 29 #include <config/change_handler.h> 30 #include <core/threading/thread.h> 31 #include <plugins/mongodb/aspect/mongodb.h> 32 #include <plugins/rrd/aspect/rrd.h> 63 void add_dbstats(
const char *path, std::string dbname);
64 void remove_dbstats(
const char *path);
66 virtual void config_tag_changed(
const char *new_tag);
69 virtual void config_value_erased(
const char *path);
88 std::string conf_path;
96 typedef std::map<std::string, DbStatsInfo> DbStatsMap;
virtual void loop()
Code to execute in the thread.
Thread aspect that allows to obtain the current time from the clock.
Fawkes library namespace.
Interface for configuration change handling.
Thread class encapsulation of pthreads.
Thread aspect to access MongoDB.
Thread aspect create, update, and graph round-robin databases (RRD).
Class representing a graph definition.
virtual void finalize()
Finalize the thread.
virtual void run()
Stub to see name in backtrace for easier debugging.
MongoRRDThread()
Constructor.
Thread aspect to log output.
Thread aspect to access configuration data.
Iterator interface to iterate over config values.
virtual ~MongoRRDThread()
Destructor.
virtual void init()
Initialize the thread.