Platform health managment modelled process. More...
#include <platform_health_management.h>
Public Member Functions | |
PlatformHealthManagement (AsyncBsdSocketLib::Poller *poller, ara::phm::CheckpointCommunicator *checkpointCommunicator, std::string functionGroup) | |
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. | |
Platform health managment modelled process.
application::platform::PlatformHealthManagement::PlatformHealthManagement | ( | AsyncBsdSocketLib::Poller * | poller, |
ara::phm::CheckpointCommunicator * | checkpointCommunicator, | ||
std::string | functionGroup | ||
) |
Constructor.
poller | Global poller for network communication |
checkpointCommunicator | Medium to communicate the supervision checkpoints |
functionGroup | Function group name monitored by the PHM |
|
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.