#include <EndpointUser.hpp>
|
| | 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.
|
| | EndpointUser ()=default |
| virtual | ~EndpointUser ()=default |
|
| 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.
|
◆ 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 ) |
◆ ~EndpointUserImp()
| geopm::EndpointUserImp::~EndpointUserImp |
( |
| ) |
|
|
virtual |
◆ operator=()
◆ 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] | policy | The 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] | sample | The values to write. The order is specified by the Agent. |
Implements geopm::EndpointUser.
The documentation for this class was generated from the following files: