libbmq  a5f8a06ba1d16cb5a65643e1fa7f1a1d6aadef40
BloombergLP::bmqpi::HostHealthMonitor Class Referenceabstract

A pure interface for monitoring the health of the host.

#include <bmqpi_hosthealthmonitor.h>

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

Public Types

typedef bsl::function< void(bmqt::HostHealthState::Enum)> HostHealthChangeFn
 

Public Member Functions

virtual ~HostHealthMonitor ()
 Destructor. More...
 
virtual bdlmt::SignalerConnection observeHostHealth (const HostHealthChangeFn &cb)=0
 
virtual bmqt::HostHealthState::Enum hostState () const =0
 Queries the current health of the host. More...
 

Member Typedef Documentation

◆ HostHealthChangeFn

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

Constructor & Destructor Documentation

◆ ~HostHealthMonitor()

virtual BloombergLP::bmqpi::HostHealthMonitor::~HostHealthMonitor ( )
virtual

Member Function Documentation

◆ observeHostHealth()

virtual bdlmt::SignalerConnection BloombergLP::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 BloombergLP::bmqa::ManualHostHealthMonitor.

◆ hostState()

virtual bmqt::HostHealthState::Enum BloombergLP::bmqpi::HostHealthMonitor::hostState ( ) const
pure virtual

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