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

Class PBDaemon

source code

  Products.ZenUtils.CmdBase.CmdBase --+    
                                      |    
  Products.ZenUtils.ZenDaemon.ZenDaemon --+
                                          |
 twisted.spread.jelly.Jellyable --+       |
                                  |       |
twisted.spread.flavors.Serializable --+   |
                                      |   |
   twisted.spread.flavors.Referenceable --+
                                          |
                                         PBDaemon

Instance Methods [hide private]
 
__init__(self, noopts=0, keeproot=False) source code
 
gotPerspective(self, perspective)
This gets called every time we reconnect.
source code
 
connect(self) source code
 
eventService(self) source code
 
getServiceNow(self, svcName) source code
 
getService(self, serviceName, serviceListeningInterface=None)
Attempt to get a service from zenhub.
source code
 
getInitialServices(self) source code
 
connected(self) source code
 
run(self) source code
 
sigTerm(self, *unused) source code
 
stop(self) source code
 
sendEvent(self, event, **kw)
Add event to queue of events to be sent.
source code
 
remote_getName(self) source code
 
remote_shutdown(self, result) source code
 
buildOptions(self)
basic options setup sub classes can add more options here
source code

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

Inherited from twisted.spread.flavors.Referenceable: jellyFor, remoteMessageReceived

Inherited from twisted.spread.flavors.Serializable: processUniqueID

Inherited from twisted.spread.jelly.Jellyable: __providedBy__, getStateFor

Class Variables [hide private]
  name = 'pbdaemon'
  initialServices = ['EventService']

Inherited from Products.ZenUtils.ZenDaemon.ZenDaemon: pidfile

Inherited from Products.ZenUtils.CmdBase.CmdBase: doesLogging

Inherited from twisted.spread.flavors.Referenceable: __implemented__, __provides__, perspective

Method Details [hide private]

__init__(self, noopts=0, keeproot=False)
(Constructor)

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

getService(self, serviceName, serviceListeningInterface=None)

source code 
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

sigTerm(self, *unused)

source code 
Overrides: Products.ZenUtils.ZenDaemon.ZenDaemon.sigTerm

sendEvent(self, event, **kw)

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

buildOptions(self)

source code 
basic options setup sub classes can add more options here
Overrides: Products.ZenUtils.ZenDaemon.ZenDaemon.buildOptions