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

Class LogWatcher

source code

twisted.internet.protocol.BaseProtocol --+        
                                         |        
        twisted.internet.protocol.Protocol --+    
                                             |    
      twisted.protocols.basic.LineOnlyReceiver --+
                                                 |
                                                LogWatcher

Instance Methods
 
__init__(self, logfile) source code
 
start(self) source code
 
timeout(self) source code
 
finished(self, results) source code
 
lineReceived(self, line)
Override this for when each line is received.
source code

Inherited from twisted.protocols.basic.LineOnlyReceiver: dataReceived, lineLengthExceeded, sendLine

Inherited from twisted.internet.protocol.Protocol: __provides__, connectionLost, logPrefix

Inherited from twisted.internet.protocol.BaseProtocol: __providedBy__, connectionMade, makeConnection

Class Variables
  POLL_INTERVAL = 0.1
  TIMEOUT_DELAY = 10.0
  delimiter = '\n'
The line-ending delimiter to use.

Inherited from twisted.protocols.basic.LineOnlyReceiver: MAX_LENGTH

Inherited from twisted.internet.protocol.Protocol: __implemented__

Inherited from twisted.internet.protocol.BaseProtocol: connected, transport

Method Details

lineReceived(self, line)

source code 

Override this for when each line is received.

Parameters:
  • line - The line which was received with the delimiter removed.
Overrides: twisted.protocols.basic.LineOnlyReceiver.lineReceived
(inherited documentation)