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

#include <BatchServer.hpp>

Inheritance diagram for geopm::BatchServerImp:
Collaboration diagram for geopm::BatchServerImp:

Public Member Functions

 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)
Public Member Functions inherited from geopm::BatchServer
 BatchServer ()=default
 Interface called by geopmd to create the server for batch commands.
virtual ~BatchServer ()=default

Additional Inherited Members

Static Public Member Functions inherited from geopm::BatchServer
static std::unique_ptr< BatchServer > make_unique (int client_pid, const std::vector< geopm_request_s > &signal_config, const std::vector< geopm_request_s > &control_config)
 Supports the D-Bus interface for starting a batch server.
static std::string get_signal_shmem_key (const std::string &server_key)
static std::string get_control_shmem_key (const std::string &server_key)
static int main (int argc, char **argv)
static void main (int client_pid, std::istream &input_stream)
Static Protected Attributes inherited from geopm::BatchServer
static constexpr const char * M_SHMEM_PREFIX

Constructor & Destructor Documentation

◆ 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]

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

◆ ~BatchServerImp()

geopm::BatchServerImp::~BatchServerImp ( )
virtual

Member Function Documentation

◆ 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

Implements geopm::BatchServer.

◆ event_loop()

void geopm::BatchServerImp::event_loop ( void )

◆ is_active()

bool geopm::BatchServerImp::is_active ( void )
overridevirtual

Returns true if the batch server is running.

Implements geopm::BatchServer.

◆ operator=()

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

◆ 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

Implements geopm::BatchServer.

◆ run_batch()

void geopm::BatchServerImp::run_batch ( void )
overridevirtual

Implements geopm::BatchServer.

◆ 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

Implements geopm::BatchServer.

◆ 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: