Trees | Index | Help |
|
---|
Package Products :: Package ZenHub :: Module PBDaemon :: Class PBDaemon |
|
Jellyable
--+ |Serializable
--+ |Referenceable
--+ |CmdBase
--+ | | |ZenDaemon
--+ | PBDaemon
RRDDaemon
,
RRDDaemon
,
zenrender
,
ZenStatus
Method Summary | |
---|---|
__init__(self,
noopts,
keeproot)
| |
basic options setup sub classes can add more options here | |
connect(self)
| |
connected(self)
| |
eventService(self)
| |
getInitialServices(self)
| |
Attempt to get a service from zenhub. | |
getServiceNow(self,
svcName)
| |
This gets called every time we reconnect. | |
remote_getName(self)
| |
remote_shutdown(self,
result)
| |
run(self)
| |
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
|
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
|
name
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:12 2007 | http://epydoc.sf.net |