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

Class PingService

source code

object --+
         |
        PingService

Instance Methods [hide private]
 
__init__(self, protocol, timeout=2, defaultTries=2) source code
 
reconfigure(self, timeout=2) source code
 
fileno(self)
The reactor will do reads only if we support a file-like interface
source code
 
logPrefix(self)
The reactor will do reads only if we support a file-like interface
source code
 
connectionLost(self, unused) source code
 
ping(self, ip)
Ping the IP address and return the result in a deferred
source code
 
_ping(self, pingJob)
Take a pingjob and send an ICMP packet for it
source code
 
_processPacket(self, reply)
Examine the parsed reply and determine what to do with it.
source code
 
doRead(self)
Receive packets from the socket and process them.
source code
 
pingJobSucceed(self, pj)
PingJob completed successfully.
source code
 
pingJobFail(self, pj)
PingJob has failed -- remove from jobqueue.
source code
 
dequePingJob(self, pj) source code
 
checkTimeout(self, pj) source code
 
jobCount(self) source code
Method Details [hide private]

__init__(self, protocol, timeout=2, defaultTries=2)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

doRead(self)

source code 

Receive packets from the socket and process them.

The name is required by the reactor select() functionality