From feb02c465c6266070b8b07ed5659b4a5794c07aa Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Wed, 23 Mar 2011 11:42:49 +0100 Subject: [PATCH] Renamed PingStatusNotifier::alert_host_up/down() methods to notify_host_up/down() --- src/ping/pinganalyzer.cpp | 4 ++-- src/ping/pingstatusnotifier.cpp | 4 ++-- src/ping/pingstatusnotifier.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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 ); -- 1.7.1