Package DataCollector :: Module zenmodeler :: Class ZenModeler
[show private | hide private]
[frames | no frames]

Class ZenModeler

CmdBase --+        
          |        
  ZenDaemon --+    
              |    
       ZCmdBase --+
                  |
                 ZenModeler

Known Subclasses:
ZenDisc

Method Summary
  __init__(self, noopts, app, single, threaded, keeproot)
  addClient(self, obj, timeout, clientType, name)
  buildOptions(self)
basic options setup sub classes can add more options here
  checkCollection(self, device)
  checkStop(self)
if there's nothing left to do, maybe we should terminate
  clientFinished(self, collectorClient)
Callback that processes the return values from a device.
  cmdCollect(self, device, ip, timeout)
Start command collection client.
  collectDevice(self, device)
Collect data from a single device.
  collectSingle(self, device)
  fillCollectionSlots(self)
If there are any free collection slots fill them up
  loadPlugins(self)
Load plugins from the plugin directory.
  main(self)
  mainLoop(self)
  portscanCollect(self, device, ip, timeout)
Start portscan collection client.
  processOptions(self)
  reactorLoop(self)
  resolveDevice(self, device)
If device is a string look it up in the dmd.
  selectPlugins(self, device, transport)
Build a list of active plugins for a device.
  sigTerm(self, *unused)
controlled shutdown of main loop on interrupt
  snmpCollect(self, device, ip, timeout)
Start snmp collection client.
  stop(self)
Stop ZenModeler make sure reactor is stopped, join with applyData thread and close the zeo connection.
  timeoutClients(self)
Inherited from ZCmdBase: closeAll, closedb, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb, zeoConnect
Inherited from ZenDaemon: becomeDaemon, changeUser, setupLogging
Inherited from CmdBase: buildParser, parseOptions

Class Variable Summary
bool generateEvents = True
Inherited from ZenDaemon: pidfile
Inherited from CmdBase: doesLogging

Method Details

buildOptions(self)

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

checkStop(self)

if there's nothing left to do, maybe we should terminate

clientFinished(self, collectorClient)

Callback that processes the return values from a device.

cmdCollect(self, device, ip, timeout)

Start command collection client.

collectDevice(self, device)

Collect data from a single device.

fillCollectionSlots(self)

If there are any free collection slots fill them up

loadPlugins(self)

Load plugins from the plugin directory.

portscanCollect(self, device, ip, timeout)

Start portscan collection client.

resolveDevice(self, device)

If device is a string look it up in the dmd.

selectPlugins(self, device, transport)

Build a list of active plugins for a device.

sigTerm(self, *unused)

controlled shutdown of main loop on interrupt
Overrides:
Products.ZenUtils.ZenDaemon.ZenDaemon.sigTerm

snmpCollect(self, device, ip, timeout)

Start snmp collection client.

stop(self)

Stop ZenModeler make sure reactor is stopped, join with applyData thread and close the zeo connection.

Class Variable Details

generateEvents

Type:
bool
Value:
True                                                                   

Generated by Epydoc 2.1 on Thu Aug 16 09:55:09 2007 http://epydoc.sf.net