Package Products :: Package ZenEvents :: Module daemonlifecycle
[hide private]
[frames] | no frames]

Source Code for Module Products.ZenEvents.daemonlifecycle

 1  ############################################################################## 
 2  #  
 3  # Copyright (C) Zenoss, Inc. 2011, all rights reserved. 
 4  #  
 5  # This content is made available according to terms specified in 
 6  # License.zenoss under the directory where your Zenoss product is installed. 
 7  #  
 8  ############################################################################## 
 9   
10   
11  from zope.component.interfaces import ObjectEvent 
12   
13 -class DaemonLifecycleEvent(ObjectEvent):
14 """ 15 Base class for zeneventd lifecycle events. 16 """
17
18 -class DaemonCreatedEvent(DaemonLifecycleEvent):
19 """ 20 Fired at the end of zeneventd's constructor. 21 """
22
23 -class DaemonStartRunEvent(DaemonLifecycleEvent):
24 """ 25 Fired when zeneventd is started and ready to listen. 26 """
27
28 -class SigTermEvent(DaemonLifecycleEvent):
29 """ 30 Called when zeneventd receives a SIGTERM. 31 """
32
33 -class SigUsr1Event(DaemonLifecycleEvent):
34 """ 35 Called when zeneventd receives a SIGUSR1 event -- that is, 36 when "zeneventd debug" is run. 37 """
38 - def __init__(self, daemon, signum):
39 super(SigUsr1Event, self).__init__(daemon) 40 self.signum = signum
41
42 -class BuildOptionsEvent(DaemonLifecycleEvent):
43 """ 44 Called when zeneventd is building its option parser. 45 """
46