From: Guilherme Maciel Ferreira Date: Wed, 23 Mar 2011 10:42:49 +0000 (+0100) Subject: Renamed PingStatusNotifier::alert_host_up/down() methods to notify_host_up/down() X-Git-Tag: v1.0~121 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=feb02c465c6266070b8b07ed5659b4a5794c07aa;p=pingcheck Renamed PingStatusNotifier::alert_host_up/down() methods to notify_host_up/down() --- diff --git a/src/ping/pinganalyzer.cpp b/src/ping/pinganalyzer.cpp index 7d5b5d7..6a0e510 100644 --- a/src/ping/pinganalyzer.cpp +++ b/src/ping/pinganalyzer.cpp @@ -73,11 +73,11 @@ void PingAnalyzer::analyze() // notify if the amount of pings that failed exceed the limit if ( exceeded_ping_failed_count_limit() ) { - Notifier->alert_host_down( HostAddress ); + Notifier->notify_host_down( HostAddress ); } else { - Notifier->alert_host_up( HostAddress ); + Notifier->notify_host_up( HostAddress ); } } diff --git a/src/ping/pingstatusnotifier.cpp b/src/ping/pingstatusnotifier.cpp index 02da7e7..b4e49c7 100644 --- a/src/ping/pingstatusnotifier.cpp +++ b/src/ping/pingstatusnotifier.cpp @@ -26,7 +26,7 @@ PingStatusNotifier::~PingStatusNotifier() { } -void PingStatusNotifier::alert_host_up( const string &host_address ) +void PingStatusNotifier::notify_host_up( const string &host_address ) { BOOST_ASSERT( !host_address.empty() ); @@ -44,7 +44,7 @@ void PingStatusNotifier::alert_host_up( const string &host_address ) BOOST_ASSERT( HostsDownList.count( host_address ) == 0 ); } -void PingStatusNotifier::alert_host_down( const string &host_address ) +void PingStatusNotifier::notify_host_down( const string &host_address ) { BOOST_ASSERT( !host_address.empty() ); diff --git a/src/ping/pingstatusnotifier.h b/src/ping/pingstatusnotifier.h index 59dda2c..45e5e4f 100644 --- a/src/ping/pingstatusnotifier.h +++ b/src/ping/pingstatusnotifier.h @@ -22,8 +22,8 @@ public: ); virtual ~PingStatusNotifier(); - void alert_host_up( const std::string &host_address ); - void alert_host_down( const std::string &host_address ); + void notify_host_up( const std::string &host_address ); + void notify_host_down( const std::string &host_address ); private: void add_host_up( const std::string &host_address );