DescriptionHost scheduler refactoring. Move HostScheduler out of monitor_db.
In order to facilitate site extensibility of HostScheduler we need to factor out the dependence on global variables in monitor_db. I modeled this refactoring off of monitor_db_cleanup.
The main changes I've made are as follows:
1. Move BaseHostScheduler, site import, and SchedulerError out of monitor_db. SchedulerError must be moved to prevent a cyclical dependency.
2. Convert staticmethod/classmethods in BaseHostScheduler, to normal methods.
3. Fix unit tests and monitor_db to import SchedulerError from host_scheduler.
Change-Id: I0c10b79e70064b73121bbb347bb71ba15e0353d1
BUG=chromium-os:12654
TEST=Ran unit tests. Tested with private Autotest instance.
Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=aa51336
Patch Set 1 #Patch Set 2 : Extra line. #
Total comments: 2
Patch Set 3 : Revert name change. #
Messages
Total messages: 3 (0 generated)
|