Implemented the requirement "Intelligently retry if a host doesn't reply: Try it...
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Thu, 24 Mar 2011 13:51:47 +0000 (14:51 +0100)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Thu, 24 Mar 2011 15:25:04 +0000 (16:25 +0100)
commitd8a91bd6354c40b1e671c2ec3a19e626db4a172b
treed838acf4e3c1022c48f9445269b40d6d63ca2990
parent49b2f402dd178995731c54349a0093f9a0eea5b5
Implemented the requirement "Intelligently retry if a host doesn't reply: Try it more often"
- PingAnalyzer::exceeded_ping_failed_count_limit() made public, thus the Analyzer can check when is required to speed up the ping (or back to the original interval)
- Included a PingInterval template class to hide the computation logic of interval speed up and slow down
src/ping/pinganalyzer.cpp
src/ping/pinganalyzer.h
src/ping/pinginterval.h [new file with mode: 0644]
src/ping/pingscheduler.cpp
src/ping/pingscheduler.h