Supervision checkpoint communicator over the FIFO medium. More...
#include <fifo_checkpoint_communicator.h>
Public Member Functions | |
| FifoCheckpointCommunicator (AsyncBsdSocketLib::Poller *poller, std::string fifoPath) | |
| Constructor. More... | |
| bool | TrySend (uint32_t checkpoint) override |
| Try to send a checkpoint occurrence. More... | |
Public Member Functions inherited from ara::phm::CheckpointCommunicator | |
| void | SetCallback (CheckpointReception &&callback) |
| Set a callback to be invoked at a checkpoint reception. More... | |
| void | ResetCallback () noexcept |
| Reset the callback to be invoked at a checkpoint reception. | |
Additional Inherited Members | |
Public Types inherited from ara::phm::CheckpointCommunicator | |
| using | CheckpointReception = std::function< void(uint32_t)> |
| Callback type for checkpoint reception. | |
Protected Attributes inherited from ara::phm::CheckpointCommunicator | |
| CheckpointReception | Callback |
| Callback to be invoked at a checkpoint reception. | |
Supervision checkpoint communicator over the FIFO medium.
| application::helper::FifoCheckpointCommunicator::FifoCheckpointCommunicator | ( | AsyncBsdSocketLib::Poller * | poller, |
| std::string | fifoPath | ||
| ) |
Constructor.
| poller | Master poller |
| fifoPath | FIFO file path |
| std::runtime_error | Thrown when the FIFO communication setup failed |
|
overridevirtual |
Try to send a checkpoint occurrence.
| checkpoint | Occurred checkpoint |
Implements ara::phm::CheckpointCommunicator.