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

Class BasicLoader

source code

CmdBase.CmdBase --+        
                  |        
ZenDaemon.ZenDaemon --+    
                      |    
      ZCmdBase.ZCmdBase --+
                          |
                         BasicLoader

Load a machine

Instance Methods [hide private]
 
__init__(self, noopts=0, app=None, ignoreComments=True)
Handle command line options, get app instance,and setup log file
source code
 
setfields(self, fieldnames, line, delimiter='|') source code
 
loadDatabase(self)
do the load
source code
 
buildOptions(self)
basic options setup sub classes can add more options here
source code
 
parseOptions(self)
Uses the optparse parse previously populated and performs common options.
source code

Inherited from ZCmdBase.ZCmdBase: closeAll, closedb, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, sigTerm, syncdb, zeoConnect

Inherited from ZenDaemon.ZenDaemon: becomeDaemon, becomeWatchdog, changeUser, niceDoggie, openPrivilegedPort, setupLogging, writePidFile

Inherited from CmdBase.CmdBase: buildParser, generate_configs, generate_xml_configs, generate_xml_table, getConfigFileDefaults, pretty_print_config_comment

Class Variables [hide private]

Inherited from ZenDaemon.ZenDaemon: pidfile

Inherited from CmdBase.CmdBase: doesLogging

Method Details [hide private]

__init__(self, noopts=0, app=None, ignoreComments=True)
(Constructor)

source code 
Handle command line options, get app instance,and setup log file
Overrides: ZCmdBase.ZCmdBase.__init__

buildOptions(self)

source code 
basic options setup sub classes can add more options here
Overrides: ZCmdBase.ZCmdBase.buildOptions
(inherited documentation)

parseOptions(self)

source code 
Uses the optparse parse previously populated and performs common options.
Overrides: CmdBase.CmdBase.parseOptions
(inherited documentation)