Renamed PingStatusNotifier::alert_host_up/down() methods to notify_host_up/down()
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Wed, 23 Mar 2011 10:42:49 +0000 (11:42 +0100)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Wed, 23 Mar 2011 10:42:49 +0000 (11:42 +0100)
src/ping/pinganalyzer.cpp
src/ping/pingstatusnotifier.cpp
src/ping/pingstatusnotifier.h

index 7d5b5d7..6a0e510 100644 (file)
@@ -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 );
     }
 
 }
index 02da7e7..b4e49c7 100644 (file)
@@ -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() );
 
index 59dda2c..45e5e4f 100644 (file)
@@ -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 );