Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
fifo_checkpoint_communicator.h
1#ifndef FIFO_CHECKPOINT_COMMUNICATOR
2#define FIFO_CHECKPOINT_COMMUNICATOR
3
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"
10
11namespace application
12{
13 namespace helper
14 {
17 {
18 private:
19 static const std::size_t cE2eHeaderSize;
20 static const std::size_t cBufferSize;
21
22 AsyncBsdSocketLib::Poller *const mPoller;
23 AsyncBsdSocketLib::FifoSender mClient;
24 AsyncBsdSocketLib::FifoReceiver mServer;
25 ara::com::e2e::Profile11 mProfile11;
27
28 void onCheckpointSend();
29 void onCheckpointReceive();
30
31 public:
37 AsyncBsdSocketLib::Poller *poller,
38 std::string fifoPath);
39
41
42 bool TrySend(uint32_t checkpoint) override;
43 };
44 }
45}
46
47#endif
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