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

# Class ZCmdBase

source code

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

Known Subclasses:
  - ZenRRD.zenstep.UpdateStep
  - , CyclingDaemon.CyclingDaemon
  - , ZenHub.zenhub.ZenHub
  - , LocationDump.LocationDump
  - , FixIps.FixIps
  - , ZenHub.ServiceTester.ServiceTester
  - , ZenRelations.ExportDevices.ExportDevices
  - , ZenReports.ReportLoader.ReportLoader
  - , ZenReports.ReportRunner.ReportRunner
  - , ZenRelations.ImportRM.ImportRM
  - , ZenRelations.ExportRM.ExportRM
  - , ZenModel.BatchDeviceDumper.BatchDeviceDumper
  - , ZenModel.BatchDeviceLoader.BatchDeviceLoader
  - , ZenRelations.ImportDevices.ImportDevices
  - , ZenEvents.zenactiond.ZenActionD
  - , BasicLoader.BasicLoader
  - , zencatalog.ZenCatalog
  - , ZenHub.zenhubworker.zenhubworker
  - , ZenEvents.zeneventd.ZenEventD
  - , zproprmlocal.ZPropRmLocal
  - , ZenModel.zenmib.ZenMib
  - , ToManyRebuildKeys.ToManyRebuildKeys

Instance Methods | [hide private]
__init__(self, noopts=0, app=None, keeproot=False) Initializer that takes care of basic daemon options. | source code
zodbConnect(self) | source code
login(self, name='admin', userfolder=None) Logs in. | source code
logout(self) Logs out. | source code
getConnection(self) Return a wrapped app connection from the connection pool. | source code
closeAll(self) Close all connections in both free an inuse pools. | source code
opendb(self) | source code
syncdb(self) | source code
closedb(self) | source code
getDataRoot(self) | source code
getContext(self, app) | source code
getDmdObj(self, path) return an object based on a path starting from the dmd | source code
findDevice(self, name) return a device based on its FQDN | source code
sigTerm(self, signum=None, frame=None) Signal handler for the SIGTERM signal. | source code
buildOptions(self) basic options setup sub classes can add more options here | source code
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]

### __init__(self, noopts=0, app=None, keeproot=False) (Constructor) | source code
Initializer that takes care of basic daemon options. Creates a PID file. Overrides: CmdBase.CmdBase.__init__

### sigTerm(self, signum=None, frame=None) | source code
Signal handler for the SIGTERM signal. Overrides: ZenDaemon.ZenDaemon.sigTerm (inherited documentation)

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