geopm  3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
Public Member Functions | List of all members
geopm::DaemonImp Class Reference

#include <DaemonImp.hpp>

Inheritance diagram for geopm::DaemonImp:
Inheritance graph
[legend]
Collaboration diagram for geopm::DaemonImp:
Collaboration graph
[legend]

Public Member Functions

 DaemonImp (const std::string &endpoint_name, const std::string &db_path)
 
 DaemonImp (std::shared_ptr< Endpoint > endpoint, std::shared_ptr< const PolicyStore > policystore)
 
 DaemonImp (const DaemonImp &other)=delete
 
DaemonImpoperator= (const DaemonImp &other)=delete
 
virtual ~DaemonImp ()
 
void update_endpoint_from_policystore (double timeout) override
 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...
 
void stop_wait_loop () override
 Exits early from any ongoing wait loops in the Daemon, for example in a call to update_endpoint_from_policystore(). More...
 
void reset_wait_loop () override
 Resets the Daemon's endpoint to prepare for a future wait loop. More...
 
- Public Member Functions inherited from geopm::Daemon
virtual ~Daemon ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from geopm::Daemon
static std::unique_ptr< Daemonmake_unique (const std::string &endpoint_name, const std::string &db_path)
 

Constructor & Destructor Documentation

◆ DaemonImp() [1/3]

geopm::DaemonImp::DaemonImp ( const std::string &  endpoint_name,
const std::string &  db_path 
)

◆ DaemonImp() [2/3]

geopm::DaemonImp::DaemonImp ( std::shared_ptr< Endpoint endpoint,
std::shared_ptr< const PolicyStore policystore 
)

◆ DaemonImp() [3/3]

geopm::DaemonImp::DaemonImp ( const DaemonImp other)
delete

◆ ~DaemonImp()

geopm::DaemonImp::~DaemonImp ( )
virtual

Member Function Documentation

◆ operator=()

DaemonImp& geopm::DaemonImp::operator= ( const DaemonImp other)
delete

◆ reset_wait_loop()

void geopm::DaemonImp::reset_wait_loop ( )
overridevirtual

Resets the Daemon's endpoint to prepare for a future wait loop.

Implements geopm::Daemon.

◆ stop_wait_loop()

void geopm::DaemonImp::stop_wait_loop ( )
overridevirtual

Exits early from any ongoing wait loops in the Daemon, for example in a call to update_endpoint_from_policystore().

Implements geopm::Daemon.

◆ update_endpoint_from_policystore()

void geopm::DaemonImp::update_endpoint_from_policystore ( double  timeout)
overridevirtual

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.

Parameters
timeoutRange of time within which the Controller must attach.

Implements geopm::Daemon.


The documentation for this class was generated from the following files: