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

Class PingThread

source code

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

PingThread takes pingjobs off a Queue and pings them.

Instance Methods [hide private]
 
__init__(self, reportqueue, tries=2, timeout=2, chunkSize=10) source code
 
sendPackets(self)
Send any packets that are in our queue up to numbtosend.
source code
 
sendPing(self, pj)
Called from main thread to add new pingjob to send queue.
source code
 
reportPingJob(self, pj)
Pass pingJobs back to our master thread when done.
source code
 
run(self)
Start this thread.
source code
 
stop(self) source code

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, join, setDaemon, setName, start

Inherited from threading.Thread (private): _set_daemon

Inherited from threading._Verbose (private): _note

Inherited from Ping.Ping: __del__, checkTimeouts, closePingSocket, createPingSocket, eventLoop, ping, pingJobFail, pingJobSucceed, recvPacket, sendPacket

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, reportqueue, tries=2, timeout=2, chunkSize=10)
(Constructor)

source code 
Overrides: threading.Thread.__init__

sendPackets(self)

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

run(self)

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