#include <BatchServer.hpp>
|
| BatchServerImp (int client_pid, const std::vector< geopm_request_s > &signal_config, const std::vector< geopm_request_s > &control_config) |
|
| BatchServerImp (int client_pid, const std::vector< geopm_request_s > &signal_config, const std::vector< geopm_request_s > &control_config, const std::string &signal_shmem_key, const std::string &control_shmem_key, PlatformIO &pio, std::shared_ptr< BatchStatus > batch_status, std::shared_ptr< POSIXSignal > posix_signal, std::shared_ptr< SharedMemory > signal_shmem, std::shared_ptr< SharedMemory > control_shmem, int server_pid) |
|
| BatchServerImp (const BatchServerImp &other)=delete |
|
BatchServerImp & | operator= (const BatchServerImp &other)=delete |
|
virtual | ~BatchServerImp () |
|
int | server_pid (void) const override |
|
std::string | server_key (void) const override |
|
bool | is_active (void) override |
| Returns true if the batch server is running.
|
|
void | run_batch (void) override |
|
void | create_shmem (void) override |
|
void | register_handler (void) override |
|
void | push_requests (void) |
|
void | read_and_update (void) |
|
void | update_and_write (void) |
|
void | check_invalid_signal (void) |
|
void | check_return (int ret, const std::string &func_name) const |
|
char | read_message (void) |
|
void | write_message (char message) |
|
void | event_loop (void) |
|
| BatchServer ()=default |
| Interface called by geopmd to create the server for batch commands.
|
|
virtual | ~BatchServer ()=default |
|
◆ BatchServerImp() [1/3]
geopm::BatchServerImp::BatchServerImp |
( |
int |
client_pid, |
|
|
const std::vector< geopm_request_s > & |
signal_config, |
|
|
const std::vector< geopm_request_s > & |
control_config |
|
) |
| |
◆ BatchServerImp() [2/3]
geopm::BatchServerImp::BatchServerImp |
( |
int |
client_pid, |
|
|
const std::vector< geopm_request_s > & |
signal_config, |
|
|
const std::vector< geopm_request_s > & |
control_config, |
|
|
const std::string & |
signal_shmem_key, |
|
|
const std::string & |
control_shmem_key, |
|
|
PlatformIO & |
pio, |
|
|
std::shared_ptr< BatchStatus > |
batch_status, |
|
|
std::shared_ptr< POSIXSignal > |
posix_signal, |
|
|
std::shared_ptr< SharedMemory > |
signal_shmem, |
|
|
std::shared_ptr< SharedMemory > |
control_shmem, |
|
|
int |
server_pid |
|
) |
| |
◆ BatchServerImp() [3/3]
◆ ~BatchServerImp()
geopm::BatchServerImp::~BatchServerImp |
( |
| ) |
|
|
virtual |
◆ check_invalid_signal()
void geopm::BatchServerImp::check_invalid_signal |
( |
void |
| ) |
|
◆ check_return()
void geopm::BatchServerImp::check_return |
( |
int |
ret, |
|
|
const std::string & |
func_name |
|
) |
| const |
◆ create_shmem()
void geopm::BatchServerImp::create_shmem |
( |
void |
| ) |
|
|
overridevirtual |
◆ event_loop()
void geopm::BatchServerImp::event_loop |
( |
void |
| ) |
|
◆ is_active()
bool geopm::BatchServerImp::is_active |
( |
void |
| ) |
|
|
overridevirtual |
◆ operator=()
◆ push_requests()
void geopm::BatchServerImp::push_requests |
( |
void |
| ) |
|
◆ read_and_update()
void geopm::BatchServerImp::read_and_update |
( |
void |
| ) |
|
◆ read_message()
char geopm::BatchServerImp::read_message |
( |
void |
| ) |
|
◆ register_handler()
void geopm::BatchServerImp::register_handler |
( |
void |
| ) |
|
|
overridevirtual |
◆ run_batch()
void geopm::BatchServerImp::run_batch |
( |
void |
| ) |
|
|
overridevirtual |
◆ server_key()
std::string geopm::BatchServerImp::server_key |
( |
void |
| ) |
const |
|
overridevirtual |
- Returns
- The key used to identify the server connection: a substring in interprocess shared memory keys used for communication.
Implements geopm::BatchServer.
◆ server_pid()
int geopm::BatchServerImp::server_pid |
( |
void |
| ) |
const |
|
overridevirtual |
◆ update_and_write()
void geopm::BatchServerImp::update_and_write |
( |
void |
| ) |
|
◆ write_message()
void geopm::BatchServerImp::write_message |
( |
char |
message | ) |
|
The documentation for this class was generated from the following files: