Package ZenStatus :: Module PingThread :: Class PingThread
[show private | hide private]
[frames | no frames]

Type PingThread

    object --+    
             |    
          Ping --+
                 |
object --+       |
         |       |
  _Verbose --+   |
             |   |
        Thread --+
                 |
                PingThread


PingThread takes pingjobs off a Queue and pings them.
Method Summary
  __init__(self, reportqueue, tries, timeout, chunkSize)
  reportPingJob(self, pj)
Pass pingJobs back to our master thread when done.
  run(self)
Start this thread.
  sendPackets(self)
Send any packets that are in our queue up to numbtosend.
  sendPing(self, pj)
Called from main thread to add new pingjob to send queue.
  stop(self)
Inherited from Thread: __repr__, getName, isAlive, isDaemon, join, setDaemon, setName, start, _set_daemon
Inherited from _Verbose: _note
Inherited from Ping: __del__, checkTimeouts, closePingSocket, createPingSocket, eventLoop, ping, pingJobFail, pingJobSucceed, recvPacket, sendPacket
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variable Summary
Inherited from Thread: _Thread__initialized

Method Details

reportPingJob(self, pj)

Pass pingJobs back to our master thread when done.

run(self)

Start this thread. Exit by setting self.morepkts.
Overrides:
threading.Thread.run

sendPackets(self)

Send any packets that are in our queue up to numbtosend.
Overrides:
ZenStatus.Ping.Ping.sendPackets

sendPing(self, pj)

Called from main thread to add new pingjob to send queue.

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