 |
Fledge
An open source edge computing platform for industrial users
|
1 #ifndef _CONFIG_HANDLER_H
2 #define _CONFIG_HANDLER_H
12 #include <service_handler.h>
13 #include <management_client.h>
14 #include <config_category.h>
20 typedef std::multimap<std::string, ServiceHandler *> CONFIG_MAP;
28 void configChange(
const std::string& category,
const std::string& config);
29 void configChildCreate(
const std::string& parent_category,
const std::string& child_category,
const std::string& config);
30 void configChildDelete(
const std::string& parent_category,
const std::string& child_category);
32 const std::string& category);
41 CONFIG_MAP m_registrations;
42 CONFIG_MAP m_registrationsChild;
void configChange(const std::string &category, const std::string &config)
Handle a callback from the core to propagate a configuration category change and propagate that to al...
Definition: config_handler.cpp:46
Handler class within a service to manage configuration changes.
Definition: config_handler.h:25
void registerCategoryChild(ServiceHandler *handler, const std::string &category)
Register a service handler for a given configuration category when a children category is changed.
Definition: config_handler.cpp:174
void registerCategory(ServiceHandler *handler, const std::string &category)
Register a service handler for a given configuration category.
Definition: config_handler.cpp:140
void unregisterCategory(ServiceHandler *handler, const std::string &category)
Unregister a configuration category from the ConfigHandler for a particular registered ServiceHandler...
Definition: config_handler.cpp:211
The management client class used by services and tasks to communicate with the management API of the ...
Definition: management_client.h:43
static ConfigHandler * getInstance(ManagementClient *)
ConfigHandler Singleton implementation.
Definition: config_handler.cpp:21
void configChildDelete(const std::string &parent_category, const std::string &child_category)
Handle a callback from the core to handle the deletion of a child category.
Definition: config_handler.cpp:107
Fledge Logger class used to log to syslog.
Definition: logger.h:42
void configChildCreate(const std::string &parent_category, const std::string &child_category, const std::string &config)
Handle a callback from the core to handle the creation of a child category.
Definition: config_handler.cpp:74
ServiceHandler abstract class - the interface that services using the management API must provide.
Definition: service_handler.h:20