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

Class EventServer

CmdBase --+        
          |        
  ZenDaemon --+    
              |    
       ZCmdBase --+
                  |
                 EventServer

Known Subclasses:
ZenMail, ZenSyslog, ZenTrap

Base class for a daemon whose primary job is to post events
Method Summary
  __init__(self)
  buildOptions(self)
basic options setup sub classes can add more options here
  finish(self)
things to do at shutdown: thread cleanup, logs and events
  heartbeat(self)
Since we don't do anything on a regular basis, just push heartbeats regularly
  main(self)
  report(self)
report some simple diagnostics at shutdown
  reportCycle(self)
  run(self)
method to process events in a thread
  sendEvent(self, evt)
wrapper for sending an event
  sendEvents(self, evts)
Send multiple events to database syncing only one time.
  sigTerm(self, signum, frame)
controlled shutdown of main loop on interrupt
  useTcpFileDescriptor(self, fd, factory)
  useUdpFileDescriptor(self, fd)
  _wakeUpReactorAndHandleSignals(self)
Inherited from ZCmdBase: closeAll, closedb, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb, zeoConnect
Inherited from ZenDaemon: becomeDaemon, changeUser, setupLogging
Inherited from CmdBase: buildParser, parseOptions

Class Variable Summary
str name = 'EventServer'
Inherited from ZenDaemon: pidfile
Inherited from CmdBase: doesLogging

Method Details

buildOptions(self)

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

finish(self)

things to do at shutdown: thread cleanup, logs and events

heartbeat(self)

Since we don't do anything on a regular basis, just push heartbeats regularly

report(self)

report some simple diagnostics at shutdown

run(self)

method to process events in a thread

sendEvent(self, evt)

wrapper for sending an event

sendEvents(self, evts)

Send multiple events to database syncing only one time.

sigTerm(self, signum, frame)

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

Class Variable Details

name

Type:
str
Value:
'EventServer'                                                          

Generated by Epydoc 2.1 on Thu Aug 16 09:55:07 2007 http://epydoc.sf.net