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

Class BasicLoader

source code

     object --+            
              |            
CmdBase.CmdBase --+        
                  |        
ZenDaemon.ZenDaemon --+    
                      |    
      ZCmdBase.ZCmdBase --+
                          |
                         BasicLoader
Known Subclasses:

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, zodbConnect

Inherited from ZenDaemon.ZenDaemon: 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, 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, ignoreComments=True)
(Constructor)

source code 

Handle command line options, get app instance,and setup log file

Overrides: CmdBase.CmdBase.__init__

buildOptions(self)

source code 

basic options setup sub classes can add more options here

Overrides: CmdBase.CmdBase.buildOptions
(inherited documentation)

parseOptions(self)

source code 

Uses the optparse parse previously populated and performs common options.

Overrides: CmdBase.CmdBase.parseOptions
(inherited documentation)