Package Products :: Package ZenHub :: Module ServiceTester :: Class ServiceTester |
[hide private]
[frames] | no frames]

# Class ServiceTester

source code

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

Instance Methods | [hide private]
__init__(self, Klass) Initializer that takes care of basic daemon options. | source code
buildOptions(self) basic options setup sub classes can add more options here | source code
setLogLevel(self, level=10) Change the logging level to allow for more insight into the in-flight mechanics of Zenoss. | source code
pprint(self, arg) | source code
showDeviceInfo(self) | source code
printDeviceProxy(self, proxy) Device proxies don't report their interal state very well. | source code
Inherited from `ZenUtils.ZCmdBase.ZCmdBase`: `closeAll`, `closedb`, `findDevice`, `getConnection`, `getContext`, `getDataRoot`, `getDmdObj`, `login`, `logout`, `opendb`, `sigTerm`, `syncdb`, `zodbConnect` Inherited from `ZenUtils.ZenDaemon.ZenDaemon`: `becomeDaemon`, `becomeWatchdog`, `changeUser`, `convertSocketOption`, `logname`, `niceDoggie`, `openPrivilegedPort`, `setupLogging`, `sighandler_USR1`, `watchdogCycleTime`, `watchdogMaxRestartTime`, `watchdogStartTimeout`, `writePidFile` Inherited from `ZenUtils.ZenDaemon.ZenDaemon` (private): `_sigUSR1_called` Inherited from `ZenUtils.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]
| doesLogging = `False`
Inherited from `ZenUtils.ZenDaemon.ZenDaemon`: `pidfile`

Method Details | [hide private]

### __init__(self, Klass) (Constructor) | source code
Initializer that takes care of basic daemon options. Creates a PID file. Overrides: ZenUtils.CmdBase.CmdBase.__init__

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

### setLogLevel(self, level=10) | source code
Change the logging level to allow for more insight into the in-flight mechanics of Zenoss. Parameters: `level` (integer) - logging level at which messages display (eg logging.INFO)

### printDeviceProxy(self, proxy) | source code
Device proxies don't report their interal state very well. This should be overwritten by the zenhub service writer.