Changes between Version 60 and Version 61 of LeaseExpirationDesign


Ignore:
Timestamp:
Jan 7, 2016, 8:16:21 PM (23 months ago)
Author:
marcin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LeaseExpirationDesign

    v60 v61  
    373373// Create the timer.
    374374TimerMgr& timer_mgr = TimerMgr::instance();
    375 timer_mgr.registerTimer("lease-reclaim-timer",                              boost::bind(&AllocEngine::reclaimExpiredLeases6,
    376                                                this, max_leases, reclaim_timeout,
    377                                                remove_lease),
    378                                    reclaim_interval,
    379                                    IntervalTimer::ONE_SHOT);
    380 
    381 // Start the created timer for the first time.
    382 TimerMgr::instance().setup("lease-reclaim-timer");
    383 
     375timer_mgr.registerTimer("lease-reclaim-timer",
     376                        boost::bind(&AllocEngine::reclaimExpiredLeases6,
     377                        this, max_leases, reclaim_timeout, remove_lease),
     378                        reclaim_interval,
     379                        IntervalTimer::ONE_SHOT);
    384380}}}
    385381
     
    430426{
    431427    "command": "leases-reclaim",
    432     "arguments": { }
    433 }
    434 }}}
    435 
     428    "arguments": { "remove": bool }
     429}
     430}}}
     431
     432where "remove" value indicates if leases should be removed on reclamation (if true) or left in the "expired-reclaimed" state (if false).
    436433
    437434== Implementation Tasks ==
     
    454451* #3980 - Update [[wiki:LeaseExpirationDesign|Design]] and [[wiki:LeaseExpirationRequirements|Requirements]] with modifications introduced during the implementation and "lessons learned".
    455452
    456 The tickets for the tasks relevant to lease expiration implementation will be submitted once this document is reviewed and approved. The document will be updated with the ticket numbers.
    457 
    458 
     453