Package Products :: Package ZenHub :: Module PBDaemon :: Class PBDaemon
[show private | hide private]
[frames | no frames]

Class PBDaemon

Jellyable --+        
            |        
 Serializable --+    
                |    
    Referenceable --+
                    |
      CmdBase --+   |
                |   |
        ZenDaemon --+
                    |
                   PBDaemon

Known Subclasses:
RRDDaemon, RRDDaemon, zenrender, ZenStatus

Method Summary
  __init__(self, noopts, keeproot)
  buildOptions(self)
basic options setup sub classes can add more options here
  connect(self)
  connected(self)
  eventService(self)
  getInitialServices(self)
  getService(self, serviceName, serviceListeningInterface)
Attempt to get a service from zenhub.
  getServiceNow(self, svcName)
  gotPerspective(self, perspective)
This gets called every time we reconnect.
  remote_getName(self)
  remote_shutdown(self, result)
  run(self)
  sendEvent(self, event, **kw)
Add event to queue of events to be sent.
  sigTerm(self, *unused)
  stop(self)
Inherited from ZenDaemon: becomeDaemon, changeUser, setupLogging
Inherited from CmdBase: buildParser, parseOptions
Inherited from Referenceable: jellyFor, remoteMessageReceived
Inherited from Serializable: processUniqueID
Inherited from Jellyable: getStateFor

Class Variable Summary
list initialServices = ['EventService']
str name = 'pbdaemon'
Inherited from ZenDaemon: pidfile
Inherited from CmdBase: doesLogging
Inherited from Referenceable: __implemented__, __provides__, perspective
Inherited from Jellyable: __providedBy__

Method Details

buildOptions(self)

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

getService(self, serviceName, serviceListeningInterface=None)

Attempt to get a service from zenhub. Returns a deferred. When service is retrieved it is stashed in self.services with serviceName as the key. When getService is called it will first check self.services and if serviceName is already there it will return the entry from self.services wrapped in a defer.succeed

gotPerspective(self, perspective)

This gets called every time we reconnect.

sendEvent(self, event, **kw)

Add event to queue of events to be sent. If we have an event service then process the queue.

Class Variable Details

initialServices

Type:
list
Value:
['EventService']                                                       

name

Type:
str
Value:
'pbdaemon'                                                             

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