geopm
3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
|
#include <Daemon.hpp>
Public Member Functions | |
virtual | ~Daemon ()=default |
virtual void | update_endpoint_from_policystore (double timeout)=0 |
Looks up a policy in the Daemon's PolicyStore given the attached Controller's agent and profile name, and writes it back into the policy side of the Daemon's Endpoint. If no policy is found, an error is returned. If the Controller fails to attach within the timeout , or detaches while this function is running, no policy is written. More... | |
virtual void | stop_wait_loop (void)=0 |
Exits early from any ongoing wait loops in the Daemon, for example in a call to update_endpoint_from_policystore(). More... | |
virtual void | reset_wait_loop (void)=0 |
Resets the Daemon's endpoint to prepare for a future wait loop. More... | |
Static Public Member Functions | |
static std::unique_ptr< Daemon > | make_unique (const std::string &endpoint_name, const std::string &db_path) |
Methods using the Endpoint interface in combination with other utilities to perform some system admin functions.
|
virtualdefault |
|
static |
endpoint_name | The shared memory prefix for the Endpoint |
db_path | The path to the PolicyStore |
|
pure virtual |
Resets the Daemon's endpoint to prepare for a future wait loop.
Implemented in geopm::DaemonImp.
|
pure virtual |
Exits early from any ongoing wait loops in the Daemon, for example in a call to update_endpoint_from_policystore().
Implemented in geopm::DaemonImp.
|
pure virtual |
Looks up a policy in the Daemon's PolicyStore given the attached Controller's agent and profile name, and writes it back into the policy side of the Daemon's Endpoint. If no policy is found, an error is returned. If the Controller fails to attach within the timeout , or detaches while this function is running, no policy is written.
timeout | Range of time within which the Controller must attach. |
Implemented in geopm::DaemonImp.