Package Products :: Package ZenHub :: Module interfaces
[hide private]
[frames] | no frames]

Source Code for Module Products.ZenHub.interfaces

 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 or (at your 
 8  # option) any later version as published by the Free Software Foundation. 
 9  # 
10  # For complete information please visit: http://www.zenoss.com/oss/ 
11  # 
12  ########################################################################### 
13   
14  from zope.component.interfaces import Interface, IObjectEvent 
15  from zope.interface import Attribute 
16   
17   
18 -class IInvalidationEvent(IObjectEvent):
19 """ 20 ZenHub has noticed an invalidation. 21 """ 22 oid = Attribute("OID of the changed object")
23 24
25 -class IUpdateEvent(IInvalidationEvent):
26 """ 27 An object has been updated. 28 """
29 30
31 -class IDeletionEvent(IInvalidationEvent):
32 """ 33 An object has been deleted. 34 """
35
36 -class IBatchNotifier(Interface):
37 """ 38 Processes subdevices in batches. 39 """ 40
41 - def notify_subdevices(device_class, service_uid, callback):
42 """ 43 Process subdevices of device class in batches calling callback with 44 each device. The service UID uniquely identifies the service, so the 45 processing of the same device_class-service pair is not duplicated. 46 """
47