Package Jobber :: Module jobs :: Class ProcessRunner
[hide private]
[frames] | no frames]

Class ProcessRunner

source code

twisted.internet.protocol.BaseProtocol --+    
                                         |    
 twisted.internet.protocol.ProcessProtocol --+
                                             |
                                            ProcessRunner

Instance Methods [hide private]
 
__init__(self, job, whenComplete)
Initialization method.
source code
 
getLog(self)
Return the log for the status for the job.
source code
 
outReceived(self, text)
Send output to the log file
source code
 
errReceived(self, text)
Send output to the log file
source code
 
processEnded(self, reason)
We're done.
source code

Inherited from twisted.internet.protocol.ProcessProtocol: childConnectionLost, childDataReceived, errConnectionLost, inConnectionLost, outConnectionLost

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

Class Variables [hide private]
  log = None

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

Method Details [hide private]

__init__(self, job, whenComplete)
(Constructor)

source code 
Initialization method. Accepts a reference to the relevant Job instance and a defer.Deferred that will be called back.

outReceived(self, text)

source code 
Send output to the log file
Overrides: twisted.internet.protocol.ProcessProtocol.outReceived

errReceived(self, text)

source code 
Send output to the log file
Overrides: twisted.internet.protocol.ProcessProtocol.errReceived

processEnded(self, reason)

source code 
We're done. End the job.
Overrides: twisted.internet.protocol.ProcessProtocol.processEnded