Package Products :: Package ZenUtils :: Module CyclingDaemon :: Class CyclingDaemon |
[hide private]
[frames] | no frames]

# Class CyclingDaemon

source code

         object --+
                  |
    CmdBase.CmdBase --+
                      |
    ZenDaemon.ZenDaemon --+
                          |
          ZCmdBase.ZCmdBase --+
                              |
                             CyclingDaemon

Instance Methods | [hide private]
main_loop(self) | source code
run(self) | source code
finish(self, results=None) | source code
sendEvent(self, evt) Send event to the system. | source code
sendHeartbeat(self) Send a heartbeat event for this monitor. | source code
runCycle(self) | source code
sigTerm(self, signum=None, frame=None) Controlled shutdown of main loop on interrupt. | source code
buildOptions(self) basic options setup sub classes can add more options here | source code
Inherited from `ZCmdBase.ZCmdBase`: `__init__`, `closeAll`, `closedb`, `findDevice`, `getConnection`, `getContext`, `getDataRoot`, `getDmdObj`, `login`, `logout`, `opendb`, `syncdb`, `zodbConnect` Inherited from `ZenDaemon.ZenDaemon`: `audit`, `becomeDaemon`, `becomeWatchdog`, `changeUser`, `convertSocketOption`, `logname`, `niceDoggie`, `openPrivilegedPort`, `setupLogging`, `sighandler_USR1`, `watchdogCycleTime`, `watchdogMaxRestartTime`, `watchdogStartTimeout`, `writePidFile` Inherited from `ZenDaemon.ZenDaemon` (private): `_sigUSR1_called` Inherited from `CmdBase.CmdBase`: `buildParser`, `checkLogpath`, `generate_configs`, `generate_xml_configs`, `generate_xml_table`, `getConfigFileDefaults`, `getGlobalConfigFileDefaults`, `getParamatersFromConfig`, `loadConfigFile`, `parseOptions`, `pretty_print_config_comment`, `validateConfigFile`

Class Variables | [hide private]
Inherited from `ZenDaemon.ZenDaemon`: `pidfile` Inherited from `CmdBase.CmdBase`: `doesLogging`

Method Details | [hide private]

### runCycle(self) | source code
Decorators: `@defer.inlineCallbacks`

### sigTerm(self, signum=None, frame=None) | source code
Controlled shutdown of main loop on interrupt. Overrides: ZenDaemon.ZenDaemon.sigTerm

### buildOptions(self) | source code
basic options setup sub classes can add more options here Overrides: CmdBase.CmdBase.buildOptions (inherited documentation)