- self.worker.add_watcher(OcloudWatcher(StxSaOcloudClient(),\r
- self.bus.uow))\r
- self.worker.add_watcher(DmsWatcher(StxSaDmsClient(),\r
- self.bus.uow))\r
+ root = WatcherTree(OcloudWatcher(\r
+ StxSaOcloudClient(), self.bus))\r
+ root.addchild(\r
+ DmsWatcher(StxSaDmsClient(), self.bus))\r
+\r
+ child_respool = root.addchild(\r
+ ResourcePoolWatcher(StxSaResourcePoolClient(),\r
+ self.bus))\r
+ child_pserver = child_respool.addchild(\r
+ PServerWatcher(StxPserverClient(), self.bus))\r
+ child_pserver.addchild(\r
+ PServerCpuWatcher(StxCpuClient(), self.bus))\r
+\r
+ self.worker.add_watcher(root)\r
+\r