1#ifndef FIFO_CHECKPOINT_COMMUNICATOR
2#define FIFO_CHECKPOINT_COMMUNICATOR
4#include <asyncbsdsocket/poller.h>
5#include <asyncbsdsocket/fifo_sender.h>
6#include <asyncbsdsocket/fifo_receiver.h>
7#include "../../ara/phm/checkpoint_communicator.h"
8#include "../../ara/com/helper/concurrent_queue.h"
9#include "../../ara/com/e2e/profile11.h"
19 static const std::size_t cE2eHeaderSize;
20 static const std::size_t cBufferSize;
22 AsyncBsdSocketLib::Poller *
const mPoller;
23 AsyncBsdSocketLib::FifoSender mClient;
24 AsyncBsdSocketLib::FifoReceiver mServer;
28 void onCheckpointSend();
29 void onCheckpointReceive();
37 AsyncBsdSocketLib::Poller *poller,
38 std::string fifoPath);
42 bool TrySend(uint32_t checkpoint)
override;
Supervision checkpoint communicator over the FIFO medium.
Definition: fifo_checkpoint_communicator.h:17
bool TrySend(uint32_t checkpoint) override
Try to send a checkpoint occurrence.
Definition: fifo_checkpoint_communicator.cpp:99
FifoCheckpointCommunicator(AsyncBsdSocketLib::Poller *poller, std::string fifoPath)
Constructor.
Definition: fifo_checkpoint_communicator.cpp:15
E2E Profile11 variant A implementation.
Definition: profile11.h:17
Thread-safe wrapper around STL queue using locking mechanism.
Definition: concurrent_queue.h:18
An abstract class to communicate a checkpoint between an application and the PHM cluster.
Definition: checkpoint_communicator.h:15
AUTOSAR application namespace.
Definition: diag_message_handler.cpp:5