1
2
3
4
5
6
7
8
9
10
11
12
13
14 __doc__ = """DeviceProxy
15 Memoxing object for SNMP-collecting devices
16 """
17
18 from twisted.spread import pb
20 """
21 Provide a cache of configuration information as needed by plugins
22 while running
23 """
24
26 """
27 Do not use base classes intializers
28 """
29 pass
30
31
33 """
34 Return the time of the last collection time
35
36 @return: time of the last collection
37 @rtype: Python DateTime object
38 """
39 from DateTime import DateTime
40 return DateTime(float(self._snmpLastCollection))
41
42
44 """
45 Numeric status of our SNMP collection
46
47 @return: status
48 @rtype: number
49 """
50 return getattr(self, '_snmpStatus', 0)
51 getSnmpStatusNumber = getSnmpStatus
52
53
55 """
56 Return our id
57
58 @return: identification
59 @rtype: string
60 """
61 return self.id
62
63 pb.setUnjellyableForClass(DeviceProxy, DeviceProxy)
64