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) source code

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

Inherited from ZenDaemon.ZenDaemon: becomeDaemon, changeUser, setupLogging, sigTerm

Inherited from CmdBase.CmdBase: buildParser, generate_configs, generate_xml_table, 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 
Overrides: CmdBase.CmdBase.parseOptions