Execution managment modelled process. More...
#include <execution_management.h>
Public Member Functions | |
ExecutionManagement (AsyncBsdSocketLib::Poller *poller) | |
Constructor. More... | |
Public Member Functions inherited from ara::exec::helper::ModelledProcess | |
void | Initialize (const std::map< std::string, std::string > &arguments) |
Initialize the process model to run the main block. More... | |
int | Terminate () |
Terminate the process model. More... | |
Protected Member Functions | |
int | Main (const std::atomic_bool *cancellationToken, const std::map< std::string, std::string > &arguments) override |
Main running block of the process. More... | |
Protected Member Functions inherited from ara::exec::helper::ModelledProcess | |
ModelledProcess (std::string appId, AsyncBsdSocketLib::Poller *poller) | |
Constructor. More... | |
void | Log (log::LogLevel logLevel, const log::LogStream &logStream) |
Log a steam. More... | |
bool | WaitForActivation () |
Wait for the next main function activation cycle. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ara::exec::helper::ModelledProcess | |
const int | cSuccessfulExitCode {0} |
Successful application exit code. | |
const int | cUnsuccessfulExitCode {1} |
Unsuccessful application exit code. | |
AsyncBsdSocketLib::Poller *const | Poller |
Global poller for TCP/IP network communication. | |
Static Protected Attributes inherited from ara::exec::helper::ModelledProcess | |
static const log::LogLevel | cLogLevel {log::LogLevel::kInfo} |
Information severity log level. | |
static const log::LogLevel | cErrorLevel {log::LogLevel::kError} |
Error severity log level. | |
Execution managment modelled process.
|
explicit |
Constructor.
poller | Global poller for network communication |
|
overrideprotectedvirtual |
Main running block of the process.
arguments | Initialization arguments keys and their corresponding values |
cancellationToken | Token to be for cancelling the main cycle |
Implements ara::exec::helper::ModelledProcess.