Descriptiondeployer: Refactor, remove watchers
This is the first of several CLs which will
enable the Deployer to use the API instead of
state package directly.
As a preliminary step, and to reduce the number
of API objects (watchers) that need implementing
later, we remove the UnitsWatcher argument from
NewDeployer and pass machine id instead. Then the
machine is retrieved from state by that id and
machine.WatchUnits() is used to handle both cases:
deploying principal units and deploying subordinates.
Unit agent no longer needs to create its own Deployer
task for subordinates, as this is now also handled
by the machine agent's Deployer task.
In follow-ups these changes will happen:
* Replace log package with loggo (as suggested);
* Remove Deployer shutdown code from the Uniter;
* Implement client and server API interface for Deployer;
* Replace state calls with API calls in Deployer.
https://code.launchpad.net/~dimitern/juju-core/059-deployer-remove-unitswatcher/+merge/171587
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 7
Patch Set 2 : deployer: Refactor, remove watchers #
Total comments: 6
Patch Set 3 : deployer: Refactor, remove watchers #
MessagesTotal messages: 5
|