17 #ifndef INCLUDED_BMQA_MANUALHOSTHEALTHMONITOR
18 #define INCLUDED_BMQA_MANUALHOSTHEALTHMONITOR
36 #include <bdlmt_signaler.h>
37 #include <bsl_memory.h>
38 #include <bsls_keyword.h>
51 bsl::shared_ptr<bmqpi::HostHealthMonitor> d_impl_sp;
60 bslma::Allocator* allocator = 0);
66 bdlmt::SignalerConnection
69 void setState(bmqt::HostHealthState::Enum newState);
72 bmqt::HostHealthState::Enum
hostState() const BSLS_KEYWORD_OVERRIDE;
Provide an interface for monitoring the health of the host.
Provide an enumeration for different host health states.
Definition: bmqa_manualhosthealthmonitor.h:48
void setState(bmqt::HostHealthState::Enum newState)
ManualHostHealthMonitor(bmqt::HostHealthState::Enum initialState, bslma::Allocator *allocator=0)
bdlmt::SignalerConnection observeHostHealth(const HostHealthChangeFn &cb) BSLS_KEYWORD_OVERRIDE
bmqt::HostHealthState::Enum hostState() const BSLS_KEYWORD_OVERRIDE
Queries the current health of the host.
~ManualHostHealthMonitor() BSLS_KEYWORD_OVERRIDE
Destructor.
A pure interface for monitoring the health of the host.
Definition: bmqpi_hosthealthmonitor.h:44
bsl::function< void(bmqt::HostHealthState::Enum)> HostHealthChangeFn
Definition: bmqpi_hosthealthmonitor.h:51
Definition: bmqa_abstractsession.h:42
Enum
Definition: bmqt_hosthealthstate.h:47