Package buildbot :: Package scripts :: Module logwatcher :: Class LogWatcher
[frames | no frames]

Class LogWatcher

BaseProtocol --+        
               |        
        Protocol --+    
                   |    
    LineOnlyReceiver --+
                       |
                      LogWatcher


Method Summary
  __init__(self, logfile)
  finished(self, results)
  lineReceived(self, line)
Override this for when each line is received.
  poll(self)
  start(self)
  timeout(self)
    Inherited from LineOnlyReceiver
  dataReceived(self, data)
Translates bytes into lines, and calls lineReceived.
  lineLengthExceeded(self, line)
Called when the maximum line length has been reached.
  sendLine(self, line)
Sends a line to the other end of the connection.
    Inherited from Protocol
  connectionLost(self, reason)
Called when the connection is shut down.

Class Variable Summary
str delimiter: The line-ending delimiter to use.
float POLL_INTERVAL = 0.10000000000000001                                                   
float TIMEOUT_DELAY = 5.0                                                                   
    Inherited from LineOnlyReceiver
int MAX_LENGTH: The maximum length of a line to allow (If a sent line is longer than this, the connection is dropped).
    Inherited from Protocol
Implements __implemented__ = <implementedBy twisted.internet.protoc...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...

Method Details

lineReceived(self, line)

Override this for when each line is received.
Overrides:
twisted.protocols.basic.LineOnlyReceiver.lineReceived (inherited documentation)

Class Variable Details

delimiter

The line-ending delimiter to use. By default this is '\r\n'.
Type:
str
Value:
'''
'''                                                                    

POLL_INTERVAL

Type:
float
Value:
0.10000000000000001                                                   

TIMEOUT_DELAY

Type:
float
Value:
5.0                                                                   

Generated by Epydoc 2.1 on Sun Dec 10 22:04:45 2006 http://epydoc.sf.net