def serve(self): # Perform normal setup. super(ReactorScaleManager, self).serve() # Make sure we've got our IPtables rocking. self.setup_iptables(self.zk_conn.watch_children( paths.manager_configs(), self.setup_iptables)) # Ensure it is being served. if not("api" in self.endpoints): self.create_endpoint("api")
def list_managers_configured(self): return self.zk_conn.list_children(paths.manager_configs())