Quick Links: |
#include <bmqpi_hosthealthmonitor.h>
Public Types | |
typedef bsl::function< void(bmqt::HostHealthState::Enum)> | HostHealthChangeFn |
Public Member Functions | |
virtual | ~HostHealthMonitor () |
virtual bdlmt::SignalerConnection | observeHostHealth (const HostHealthChangeFn &cb)=0 |
virtual bmqt::HostHealthState::Enum | hostState () const =0 |
A pure interface for monitoring the health of the host.
See Component bmqpi_hosthealthmonitor
typedef bsl::function<void(bmqt::HostHealthState::Enum)> bmqpi::HostHealthMonitor::HostHealthChangeFn |
Invoked as a response to the HostHealthMonitor detecting a change in the state of the host health.
virtual bmqpi::HostHealthMonitor::~HostHealthMonitor | ( | ) | [virtual] |
Destructor
virtual bdlmt::SignalerConnection bmqpi::HostHealthMonitor::observeHostHealth | ( | const HostHealthChangeFn & | cb | ) | [pure virtual] |
Registers the specified `cb` to be invoked each time the health of the host changes.
Implemented in bmqa::ManualHostHealthMonitor.
virtual bmqt::HostHealthState::Enum bmqpi::HostHealthMonitor::hostState | ( | ) | const [pure virtual] |
Queries the current health of the host.
Implemented in bmqa::ManualHostHealthMonitor.