Quick Links:

bmqa | bmqpi | bmqt

Public Types | Public Member Functions

bmqpi::HostHealthMonitor Class Reference

#include <bmqpi_hosthealthmonitor.h>

Inheritance diagram for bmqpi::HostHealthMonitor:
bmqa::ManualHostHealthMonitor

List of all members.

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

Detailed Description

A pure interface for monitoring the health of the host.

See Component bmqpi_hosthealthmonitor


Member Typedef Documentation

Invoked as a response to the HostHealthMonitor detecting a change in the state of the host health.


Constructor & Destructor Documentation

virtual bmqpi::HostHealthMonitor::~HostHealthMonitor (  )  [virtual]

Destructor


Member Function Documentation

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.


The documentation for this class was generated from the following file: