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:
  - ZenModel.CiscoLoader.CiscoLoader
  - , ZenModel.IpServiceLoader.IpServiceLoader

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`, `sighandler_USR1`, `watchdogCycleTime`, `watchdogMaxRestartTime`, `watchdogStartTimeout`, `writePidFile` Inherited from `CmdBase.CmdBase`: `buildParser`, `checkLogpath`, `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: 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)