|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
43 const boost::property_tree::ptree &cfg,
CoreUtilsPtr utils);
53 virtual void run()
override;
56 using TimePoint = std::chrono::system_clock::time_point;
MonitorModule(zmqpp::context &ctx, zmqpp::socket *pipe, const boost::property_tree::ptree &cfg, CoreUtilsPtr utils)
std::string reader_to_watch_
virtual void run() override
This is the main loop of the module.
Base class for module implementation.
void process_reader_config()
Load config related to reader activity monitoring.
std::unique_ptr< Leosac::Hardware::FLED > reader_led_
Led for feedback about reader activity.
void process_network_config()
Load config related to network monitoring.
This is the header file for a generated source file, GitSHA1.cpp.
std::unique_ptr< Leosac::Hardware::FLED > network_led_
Led for feedback about network availability.
Main class for the monitor module.
void log_system_bus()
Called when a message arrives on the system bus and we are configured to log that.
std::chrono::system_clock::time_point TimePoint
std::unique_ptr< Leosac::Hardware::FLED > system_led_
Led for feedback about system readiness.
std::string req_scripts_dir()
Get scripts directory from kernel.
std::string addr_to_ping_
MonitorModule & operator=(const MonitorModule &)=delete
std::shared_ptr< CoreUtils > CoreUtilsPtr