Supervision method to check an entity aliveness via the source and target checkpoints. More...
#include <deadline_supervision.h>
Public Member Functions | |
| DeadlineSupervision (std::chrono::milliseconds minDeadline, std::chrono::milliseconds maxDeadline) | |
| Constructor. More... | |
| void | ReportSourceCheckpoint () |
| Report the occurrence of the source checkpoint. | |
| void | ReportTargetCheckpoint () |
| Report the occurrence of the target checkpoint. | |
Public Member Functions inherited from ara::phm::supervisors::ElementarySupervision | |
| SupervisionStatus | GetStatus () const noexcept |
| Get the supervision status. More... | |
| TypeOfSupervision | GetType () const noexcept |
| Get the type of supervision. More... | |
| void | SetCallback (std::function< void(SupervisionStatus)> &&callback) |
| Set a callback to be invoked on the supervision status change. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ara::phm::supervisors::ElementarySupervision | |
| ElementarySupervision (TypeOfSupervision supervisionType) noexcept | |
| Constructor. More... | |
| void | Report (SupervisionStatus status) |
| Report the new supervision status. More... | |
Supervision method to check an entity aliveness via the source and target checkpoints.
| ara::phm::supervisors::DeadlineSupervision::DeadlineSupervision | ( | std::chrono::milliseconds | minDeadline, |
| std::chrono::milliseconds | maxDeadline | ||
| ) |
Constructor.
| minDeadline | Source to target checkpoint transition checkpoint mimimum deadline |
| maxDeadline | Source to target checkpoint transition checkpoint maximum deadline |
| std::invalid_argument | Thrown when the deadline values are invalid |