Package ZenEvents :: Module EventServer :: Class EventServer
[hide private]
[frames] | no frames]

Class EventServer

source code

Products.ZenUtils.CmdBase.CmdBase --+        
                                    |        
Products.ZenUtils.ZenDaemon.ZenDaemon --+    
                                        |    
      Products.ZenUtils.ZCmdBase.ZCmdBase --+
                                            |
                                           EventServer
Known Subclasses:
zenmail.ZenMail, zentrap.ZenTrap, zensyslog.ZenSyslog

Base class for a daemon whose primary job is to post events

Instance Methods [hide private]
 
__init__(self) source code
 
useUdpFileDescriptor(self, fd) source code
 
useTcpFileDescriptor(self, fd, factory) source code
 
reportCycle(self) source code
 
run(self)
method to process events in a thread
source code
 
sendEvent(self, evt)
wrapper for sending an event
source code
 
sendEvents(self, evts)
Send multiple events to database syncing only one time.
source code
 
heartbeat(self)
Since we don't do anything on a regular basis, just push heartbeats regularly
source code
 
sigTerm(self, signum, frame)
controlled shutdown of main loop on interrupt
source code
 
report(self)
report some simple diagnostics at shutdown
source code
 
finish(self)
things to do at shutdown: thread cleanup, logs and events
source code
 
buildOptions(self)
basic options setup sub classes can add more options here
source code
 
_wakeUpReactorAndHandleSignals(self) source code
 
main(self) source code

Inherited from Products.ZenUtils.ZCmdBase.ZCmdBase: closeAll, closedb, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb, zeoConnect

Inherited from Products.ZenUtils.ZenDaemon.ZenDaemon: becomeDaemon, changeUser, setupLogging

Inherited from Products.ZenUtils.CmdBase.CmdBase: buildParser, generate_configs, generate_xml_table, parseOptions, pretty_print_config_comment

Class Variables [hide private]
  name = 'EventServer'

Inherited from Products.ZenUtils.ZenDaemon.ZenDaemon: pidfile

Inherited from Products.ZenUtils.CmdBase.CmdBase: doesLogging

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: Products.ZenUtils.ZCmdBase.ZCmdBase.__init__

sigTerm(self, signum, frame)

source code 
controlled shutdown of main loop on interrupt
Overrides: Products.ZenUtils.ZenDaemon.ZenDaemon.sigTerm

buildOptions(self)

source code 
basic options setup sub classes can add more options here
Overrides: Products.ZenUtils.ZCmdBase.ZCmdBase.buildOptions
(inherited documentation)