#include <boost/assert.hpp>
using namespace std;
-using boost::shared_ptr;
//-----------------------------------------------------------------------------
// HostStatus
HostStatus::HostStatus(
const string &host_address,
const int ping_fail_limit_percentage,
- const shared_ptr<LinkStatus> link_analyzer
+ const LinkStatusItem link_analyzer
) :
HostAddress( host_address ),
LinkAnalyzer( link_analyzer ),
#include <string>
-#include <boost/shared_ptr.hpp>
-
#include "link/linkstatus.h"
//-----------------------------------------------------------------------------
HostStatus(
const std::string &host_address,
const int ping_fail_limit_percentage,
- const boost::shared_ptr<LinkStatus> link_analyzer
+ const LinkStatusItem link_analyzer
);
~HostStatus();
/// the DNS address of the host to analyze
std::string HostAddress;
/// the object responsible to analyze the link
- const boost::shared_ptr<LinkStatus> LinkAnalyzer;
+ const LinkStatusItem LinkAnalyzer;
/// the maximum amount of pings that can fail without warning
int PingFailLimitPercentage;
/// the amount of IPs that are aliases to the host DNS
using boost::posix_time::microsec_clock;
using boost::posix_time::ptime;
using boost::posix_time::seconds;
-using boost::shared_ptr;
using boost::thread;
using I2n::Logger::GlobalLogger;
const long ping_interval_in_sec,
const int ping_fail_percentage_limit,
const string &nameserver,
- shared_ptr<LinkStatus> link_analyzer
+ LinkStatusItem link_analyzer
) :
IoService(),
const long ping_interval_in_sec,
const int ping_fail_percentage_limit,
const std::string &nameserver,
- boost::shared_ptr<LinkStatus> link_analyzer
+ LinkStatusItem link_analyzer
);
~PingScheduler();