// be configurable.
const unsigned int D2Process::QUEUE_RESTART_PERCENT = 80;
-D2Process::D2Process(const char* name, asiolink::IOServicePtr io_service)
+D2Process::D2Process(const char* name, const asiolink::IOServicePtr& io_service)
: DProcessBase(name, io_service, DCfgMgrBasePtr(new D2CfgMgr())),
reconf_queue_flag_(false), shutdown_type_(SD_NORMAL) {
/// asynchronous event handling.
///
/// @throw DProcessBaseError is io_service is NULL.
- D2Process(const char* name, asiolink::IOServicePtr io_service);
+ D2Process(const char* name, const asiolink::IOServicePtr& io_service);
/// @brief Called after instantiation to perform initialization unique to
/// D2.
// at which the IOService must be executed to run the handlers
// for the installed timers.
TEST_F(MemfileLeaseMgrTest, getIOServiceExecInterval) {
- LeaseMgr::ParameterMap pmap;
+ LeaseMgr::ParameterMap pmap;
pmap["type"] = "memfile";
pmap["universe"] = "4";
pmap["name"] = getLeaseFilePath("leasefile4_0.csv");
EXPECT_EQ(0, lease_mgr->getIOServiceExecInterval());
// lfc-interval = 10
- pmap["lfc-interval"] = 10;
+ pmap["lfc-interval"] = "10";
lease_mgr.reset(new LFCMemfileLeaseMgr(pmap));
EXPECT_EQ(10, lease_mgr->getIOServiceExecInterval());
// lfc-interval = 20
- pmap["lfc-interval"] = 20;
+ pmap["lfc-interval"] = "20";
lease_mgr.reset(new LFCMemfileLeaseMgr(pmap));
- EXPECT_EQ(10, lease_mgr->getIOServiceExecInterval());
+ EXPECT_EQ(20, lease_mgr->getIOServiceExecInterval());
}