Package ZenRRD :: Module zencommand :: Class zencommand
[hide private]
[frames] | no frames]

Class zencommand

source code

Products.ZenRRD.RRDDaemon.RRDDaemon --+
                                      |
                                     zencommand

Daemon code to schedule commands and run them.

Instance Methods [hide private]
 
__init__(self) source code
 
remote_deleteDevice(self, doomed) source code
 
remote_updateConfig(self, config) source code
 
remote_updateDeviceList(self, devices) source code
 
updateConfig(self, configs, expected) source code
 
heartbeatCycle(self, *ignored)
There is no master 'cycle' to send the hearbeat
source code
 
processSchedule(self, *unused)
Run through the schedule and start anything that needs to be done.
source code
 
sendCmdEvent(self, cmd, severity, summary)
Send an event using the info in the Cmd object.
source code
 
finished(self, cmdOrErr)
The command has finished.
source code
 
error(self, err)
The finished method indicated that there was a failure.
source code
 
parseResults(self, cmd)
Process the results of our command-line, send events and check datapoints.
source code
 
fetchConfig(self) source code
 
start(self, driver)
Fetch the configuration and return a deferred for its completion.
source code
 
buildOptions(self) source code
 
connected(self) source code
Class Variables [hide private]
  initialServices = RRDDaemon.initialServices+ ['CommandConfig']
Method Details [hide private]

processSchedule(self, *unused)

source code 
Run through the schedule and start anything that needs to be done. Set a timer if we have nothing to do.

finished(self, cmdOrErr)

source code 
The command has finished. cmdOrErr is either a Cmd instance or a twisted failure.

error(self, err)

source code 
The finished method indicated that there was a failure. This method is also called by RRDDaemon.errorStop.

parseResults(self, cmd)

source code 
Process the results of our command-line, send events and check datapoints.
Parameters:
  • cmd - command

start(self, driver)

source code 
Fetch the configuration and return a deferred for its completion. Also starts the config cycle