Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
application::helper::LogRecoveryAction Class Reference

A class to provide logging as the recovery action for a failed supervised entity. More...

#include <log_recovery_action.h>

Inheritance diagram for application::helper::LogRecoveryAction:
ara::phm::RecoveryAction

Public Member Functions

void RecoveryHandler (const ara::exec::ExecutionErrorEvent &executionError, ara::phm::TypeOfSupervision supervision) override
 Perform the action to handle the recovery. More...
 
- Public Member Functions inherited from ara::phm::RecoveryAction
 RecoveryAction (RecoveryAction &&ra) noexcept
 
 RecoveryAction (const RecoveryAction &ra)=delete
 
RecoveryActionoperator= (const RecoveryAction &ra)=delete
 
core::Result< void > Offer ()
 Start offering the recovery action. More...
 
void StopOffer () noexcept
 Stop offering the recovery action. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ara::phm::RecoveryAction
 RecoveryAction (const core::InstanceSpecifier &instance)
 Constructor. More...
 
bool IsOffered () const noexcept
 Indicate whether the action has been already offered or not. More...
 

Detailed Description

A class to provide logging as the recovery action for a failed supervised entity.

Member Function Documentation

◆ RecoveryHandler()

void application::helper::LogRecoveryAction::RecoveryHandler ( const ara::exec::ExecutionErrorEvent executionError,
ara::phm::TypeOfSupervision  supervision 
)
overridevirtual

Perform the action to handle the recovery.

Parameters
executionErrorOccurred error while supervising
supervisionFailed supervision algorithm type
Note
The action should be offered beforehand to enable the invocation.
See also
Offer

Implements ara::phm::RecoveryAction.