Package ZenHub :: Package services :: Module XmlRPCConfig
[hide private]
[frames] | no frames]

Source Code for Module ZenHub.services.XmlRPCConfig

 1  ########################################################################### 
 2  # 
 3  # This program is part of Zenoss Core, an open source monitoring platform. 
 4  # Copyright (C) 2007, Zenoss Inc. 
 5  # 
 6  # This program is free software; you can redistribute it and/or modify it 
 7  # under the terms of the GNU General Public License version 2 as published by 
 8  # the Free Software Foundation. 
 9  # 
10  # For complete information please visit: http://www.zenoss.com/oss/ 
11  # 
12  ########################################################################### 
13  #! /usr/bin/env python  
14   
15  from PerformanceConfig import PerformanceConfig 
16   
17 -class XmlRPCConfig(PerformanceConfig):
18
19 - def remote_getDevices(self, devices=None):
20 return self.config.getDevices(devices)
21 22
23 - def remote_getDeviceUpdates(self, devices):
24 return self.config.getDeviceUpdates(devices)
25 26
27 - def remote_getXmlRpcDevices(self, *args, **kwargs):
28 return self.config.getXmlRpcDevices(*args, **kwargs)
29 30
31 - def getDeviceConfig(self, device):
33 34
35 - def sendDeviceConfig(self, listener, config):
36 return listener.callRemote('updateDeviceConfig', config)
37