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

# Class ZenTcpClient

source code

      twisted.internet.protocol.Factory --+
                                          |
    twisted.internet.protocol.ClientFactory --+
                                              |
                                             ZenTcpClient

Client class to run TCP tests.

Nested Classes | [hide private]
| protocol Twisted class to make a TCP/IP connection to a remote IP service and report back the result.

Instance Methods | [hide private]
__init__(self, svc, status) | source code
clientConnectionLost(self, connector, reason) Record why the connection to the remote device was dropped. | source code
clientConnectionFailed(self, connector, reason) Record why the connection to the remote device failed. | source code
dictionary |
getEvent(self) Called by zenstatus to report status information about a service. | source code
Twisted deferred |
start(self) Called by zenstatus to make a connection attempt to the service. | source code
Inherited from `twisted.internet.protocol.ClientFactory`: `startedConnecting` Inherited from `twisted.internet.protocol.Factory`: `buildProtocol`, `doStart`, `doStop`, `startFactory`, `stopFactory`

Class Variables | [hide private]
| msg = `"pass"`
| deferred = `None`
Inherited from `twisted.internet.protocol.Factory`: `noisy`, `numPorts`

Method Details | [hide private]

### clientConnectionLost(self, connector, reason) | source code
Record why the connection to the remote device was dropped. Parameters: `connector` (Twisted protocol object) - Twisted protocol object `reason` (Twisted error object) - explanation for the connection loss Overrides: twisted.internet.protocol.ClientFactory.clientConnectionLost

### clientConnectionFailed(self, connector, reason) | source code
Record why the connection to the remote device failed. Parameters: `connector` (Twisted protocol object) - Twisted protocol object `reason` (Twisted error object) - explanation for the connection loss Overrides: twisted.internet.protocol.ClientFactory.clientConnectionFailed

### getEvent(self) | source code
Called by zenstatus to report status information about a service. Returns: dictionary event of what happened to our service test

### start(self) | source code
Called by zenstatus to make a connection attempt to the service. Returns: Twisted deferred Twisted deferred