geopm 3.2.1.dev535+ga96c120fc
GEOPM - Global Extensible Open Power Manager
Loading...
Searching...
No Matches
geopm::EndpointUserImp Class Reference

#include <EndpointUser.hpp>

Inheritance diagram for geopm::EndpointUserImp:
Collaboration diagram for geopm::EndpointUserImp:

Public Member Functions

 EndpointUserImp ()=delete
EndpointUserImp & operator= (const EndpointUserImp &other)=delete
 EndpointUserImp (const EndpointUserImp &other)=delete
 EndpointUserImp (const std::string &data_path, const std::set< std::string > &hosts)
 EndpointUserImp (const std::string &data_path, std::unique_ptr< SharedMemory > policy_shmem, std::unique_ptr< SharedMemory > sample_shmem, const std::string &agent_name, int num_sample, const std::string &profile_name, const std::string &hostlist_path, const std::set< std::string > &hosts)
virtual ~EndpointUserImp ()
double read_policy (std::vector< double > &policy) override
 Read the latest policy values. All NAN indicates that a policy has not been written yet.
void write_sample (const std::vector< double > &sample) override
 Write sample values and update the sample age.
Public Member Functions inherited from geopm::EndpointUser
 EndpointUser ()=default
virtual ~EndpointUser ()=default

Additional Inherited Members

Static Public Member Functions inherited from geopm::EndpointUser
static std::unique_ptr< EndpointUser > make_unique (const std::string &policy_path, const std::set< std::string > &hosts)
 Factory method for the EndpointUser receiving the policy.

Constructor & Destructor Documentation

◆ EndpointUserImp() [1/4]

geopm::EndpointUserImp::EndpointUserImp ( )
delete

◆ EndpointUserImp() [2/4]

geopm::EndpointUserImp::EndpointUserImp ( const EndpointUserImp & other)
delete

◆ EndpointUserImp() [3/4]

geopm::EndpointUserImp::EndpointUserImp ( const std::string & data_path,
const std::set< std::string > & hosts )

◆ EndpointUserImp() [4/4]

geopm::EndpointUserImp::EndpointUserImp ( const std::string & data_path,
std::unique_ptr< SharedMemory > policy_shmem,
std::unique_ptr< SharedMemory > sample_shmem,
const std::string & agent_name,
int num_sample,
const std::string & profile_name,
const std::string & hostlist_path,
const std::set< std::string > & hosts )

write hostnames to file

◆ ~EndpointUserImp()

geopm::EndpointUserImp::~EndpointUserImp ( )
virtual

Member Function Documentation

◆ operator=()

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

◆ read_policy()

double geopm::EndpointUserImp::read_policy ( std::vector< double > & policy)
overridevirtual

Read the latest policy values. All NAN indicates that a policy has not been written yet.

Parameters
[out]policyThe policy values read. The order is specified by the Agent.
Returns
The age of the policy in seconds.

Implements geopm::EndpointUser.

◆ write_sample()

void geopm::EndpointUserImp::write_sample ( const std::vector< double > & sample)
overridevirtual

Write sample values and update the sample age.

Parameters
[in]sampleThe values to write. The order is specified by the Agent.

Implements geopm::EndpointUser.


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